首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

PHP Strict Standards有关问题

2012-08-26 
PHP Strict Standards问题异常信息:( ! ) Strict standards: Declaration of SugarEmailAddress::save() s

PHP Strict Standards问题

异常信息:

( ! ) Strict standards: Declaration of SugarEmailAddress::save() should be compatible with that of SugarBean::save() in D:\dev\server\xampp1\htdocs\sugar\include\SugarEmailAddress\SugarEmailAddress.php on line 1011

Call Stack#TimeMemoryFunctionLocation10.0017523432{main}( )..\install.php:020.22747165168require_once( 'D:\dev\server\xampp1\htdocs\sugar\include\entryPoint.php' )..\install.php:60

?

在运行PHP软件时,如果遇到类似的错误,“Strict Standards”,不是错误,而是PHP5.3和之前的版本不太兼容。5.3之后的版本规定声明需要在使用之前。

修改php.ini就可以解决,其实就是不显示出这个异常:

?

原php.ini error_reporting = E_ALL | E_STRICT
?
修改为error_reporting = E_ALL & ~E_NOTICE?

热点排行