Home  >  Article  >  Backend Development  >  在最新wampserver上运作spaweditor总出错,是否只能通过php降级解决

在最新wampserver上运作spaweditor总出错,是否只能通过php降级解决

WBOY
WBOYOriginal
2016-06-13 12:49:20869browse

在最新wampserver上运行spaweditor总出错,是否只能通过php降级解决?

已将php.ini中参数进行了修订:error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
ftp到在其它第三方提供的web host 运行一切正常,可是在本地的wampserver依然是是如图的结果,求指点!谢

是不是只能将wampserver降级的2.1 (php5.3)才能解决

php wampserver
------解决方案--------------------
你可按错误提示修改程序
比如他说 SpawConfig::setStaticConfigItem 不是静态方法
那你就找到 SpawConfig 类定义中的 function setStaticConfigItem 在前面加上 static 声明

------解决方案--------------------
class T {<br />
  function foo() {<br />
    echo 'abcd';<br />
  }<br />
}<br />
<br />
class T1 {<br />
  static function foo() {<br />
    echo 'abcd';<br />
  }<br />
}<br />
T::foo(); //这要报错 Strict Standards: Non-static method T::foo() should not be called statically in <br />
T1::foo(); //这个就不报错
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn