码迷,mamicode.com
首页 > Web开发 > 详细

php 错误 Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of 解决办法

时间:2014-10-30 15:03:31      阅读:310      评论:0      收藏:0      [点我收藏+]

标签:des   io   ar   sp   文件   on   问题   bs   amp   

错误原因:
这是由于 php 5.3版本后。要求继承类必须在父类之后定义。否则就会出现Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的错误提示。也就是说必须父类在前,继承类在后。
错误参考页面。bugs点php点net/bug.php?id=46851  (不能发表带链接的网址) 上面清楚地解释了出现此类错误的具体原因。
解决办法:在wordpress3.0.1 文件中,找到 wp-admin\setup-config.php 文件。在require_once('../wp-includes/compat.php'); 上面添加一句:
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
问题解决。
这句话的意思是错误报告设置:显示所有错误,但是除了严格错检查或者错误报告。也就是说PHP5.3.3 不执行严格错误检查。也不显示错误提示。跳过严格错误检查。

php 错误 Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of 解决办法

标签:des   io   ar   sp   文件   on   问题   bs   amp   

原文地址:http://www.cnblogs.com/sailrancho/p/4062360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!