Disabling Strict Standards in PHP 5.4

前端 未结 5 1969
予麋鹿
予麋鹿 2020-11-28 04:18

I\'m currently running a site on php 5.4, prior to this I was running my site on 5.3.8. Unfortunately, php 5.4 combines E_ALL and E_STRICT, which m

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 04:46

    If you would need to disable E_DEPRACATED also, use:

    php_value error_reporting 22527
    

    In my case CMS Made Simple was complaining "E_STRICT is enabled in the error_reporting" as well as "E_DEPRECATED is enabled". Adding that one line to .htaccess solved both misconfigurations.

提交回复
热议问题