Forum Moderators: coopster
E_ALL, including
E_STRICT. Up to this point it has always been in PHP >= 5 you have to be specific to get
E_STRICTmessages by adding it to the
E_ALLmessages already active:
error_reporting = E_ALL ¦ E_STRICT
So? Where is this going? Well, PHP6 has updated the bitmask representation of the error_reporting constants.
E_STRICTbecame part of [php.net]
E_ALLnow.
E_ALLused to be 2047, and now it is 6143 and
E_STRICThas taken over the old "next available" bit field of 2048.
This is all fine, and works well in your test environment if you just set the integer to the highest integer like the manual recommends:
Note: PHP Constants outside of PHP Using PHP Constants outside of PHP, like in httpd.conf, will have no useful meaning so in such cases the integer [php.net] values are required. And since error levels will be added over time, the maximum value (forE_ALL) will likely change. So in place ofE_ALLconsider using a larger value to cover all bit fields from now and well into the future, a numeric value like 2147483647.
But if you are testing software (Wordpress for instance) that has
E_STRICTerrors in it, it helps to turn the reporting down under
E_STRICTso you don't have to look at all the errors. Just put an entry in your Apache configuration (httpd.conf or .htaccess) with the following value and you are good to go.
php_value error_reporting 2047