Maison  >  Article  >  développement back-end  >  PHP版本和amfphp兼容性有关问题

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

WBOY
WBOYoriginal
2016-06-13 10:56:181014parcourir

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的,发现一切正常!望像我一样的新手记住这个问题!

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn