Heim >Backend-Entwicklung >PHP-Tutorial > PHP版本和amfphp兼容性有关问题
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的,发现一切正常!望像我一样的新手记住这个问题!