PHP 5.3: “Declaration of … should be compatible with that of …” error

孤者浪人 提交于 2019-12-04 03:51:40

It's an E_STRICT error. Change your php.ini setting to E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT)...

But it should be turned off by default (it's not included in E_ALL). So if you're getting them, that means it's being turned on somewhere. The question is, where? Do declare error_reporting(...) anywhere in your files? If so, check them. If not, then be sure you're editing the right php.ini file (check phpinfo())... You could always do a grep for E_STRICT to try to find where it's being turned on...

广西大学-张晓

Let me tell you a good settings.

You can change php.ini, in this file, you can search a sentence as ignore_repeated_errors = Off, you should change off state to on state.

If you also meet the same type of error, you should set Error Level Constants.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!