`

【转载】amfphp\core \shared\util\MethodTable.php错误解决方法!

    博客分类:
  • PHP
阅读更多
<!-- done--><!-- end: blogStats -->

<!-- end: navigator 博客导航栏 --> <!-- end: header 头部 --> <!-- done-->

amfphp\core \shared\util\MethodTable.php错误解决方法!

http://www.cnblogs.com/zhych/archive/2009/09/24/1573332.html

 

Error retrieving service info: Function eregi_replace() is 
deprecated C:\wamp\www\amfphp\core\shared\util\MethodTable.php on line 
506 Error retrieving service info:

Function eregi_replace() is deprecated
C:\wamp\www\amfphp\core\shared\util\MethodTable.php on line 506

是因为该方法在php5.3中被去掉了,所以会提示错误,

修改 /amfphp/core/shared/util/MethodTable.php 文件:

        $comment = eregi_replace("\n[ \t]+", "\n", trim($comment));
        $comment = str_replace("\n", "\\n", trim($comment));
        $comment = eregi_replace("[\t ]+", " ", trim($comment));

改成下面的内容。就正确了

        $comment = preg_replace("#\n[ \t]+#U", "\n", trim($comment));
        $comment = str_replace("\n", "\\n", trim($comment));
        $comment = preg_replace("#[\t ]+#U", " ", trim($comment));

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics