<!-- 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

 

【转载】amfphp\core \shared\util\MethodTable.php错误解决方法! 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));

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-08-09
  • 2021-08-25
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-07-08
  • 2021-06-19
  • 2022-01-20
相关资源
相似解决方案