Changed PHP error_reporting settings in PHP 5

As of sometime today, it looks like the value of the error_reporting configuration directive has changed for PHP 5 users, meaning that your pages may display many unwanted warnings.

I think the following line should restore the previous behavior:

ini_set(‘error_reporting’, E_ALL ^ E_NOTICE);

There is no such things at unwanted warnings.

If you’re a developer and you get warnings with E_ALL turned on, I’d suggest fixing them. :wink:

Proper code should be clean of ALL errors with E_ALL on. Perfect PHP5 code will be clean of ALL errors with E_STRICT.

After thinking about this, actually, I agree. :slight_smile: