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));

 

相关文章:

  • 2021-12-12
  • 2022-01-09
  • 2021-09-29
  • 2021-07-31
  • 2021-05-21
猜你喜欢
  • 2021-10-04
  • 2021-07-08
  • 2022-12-23
  • 2021-07-24
  • 2021-05-16
相关资源
相似解决方案