---
title: "PHP版本和amfphp兼容性问题"
author: "y1d2y3xyz"
date: "2010-07-12T13:15:38Z"
tags: []
categories: ["Web前端"]
slug: "php-amfphp"
draft: false
lastmod: "2010-07-12T13:15:38Z"
id: 710566
url: "https://lovebeyond.iteye.com/blog/710566"
---

之前一直是手动安装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的，发现一切正常！望像我一样的新手记住这个问题！