>  기사  >  백엔드 개발  >  PHP版本和amfphp兼容性有关问题

PHP版本和amfphp兼容性有关问题

WBOY
WBOY원래의
2016-06-13 10:56:181016검색

PHP版本和amfphp兼容性问题
之前一直是手动安装lamp环境的,由于重装了系统,所有为了省事就安装安装了APPserv,结果发现amfphp 运行不起来,访问gateway.php 这个文件报错,错误如下:‘Fatal error: Uncaught exception 'VerboseException' with message 'Non-static method CharsetHandler::setMethod() should not be called statically, assuming $this from incompatible context' in C:\AppServ\www\amfphp1.9\core\amf\app\Gateway.php:134 Stack trace: #0 C:\AppServ\www\amfphp1.9\core\amf\app\Gateway.php(134): amfErrorHandler(2048, 'Non-static meth...', 'C:\AppServ\www\...', 134, Array) #1 C:\AppServ\www\amfphp1.9\gateway.php(154): Gateway->service() #2 {main} thrown in C:\AppServ\www\amfphp1.9\core\amf\app\Gateway.php on line 134 ’
我想应该是版本兼容性的问题,重新下载了个Appserv,php是5.x的,发现一切正常!望像我一样的新手记住这个问题!

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.