Sunday 6 February 2011

PHP "Deprecated" error messages

PHP 5.3.x throws out plenty of "Deprecated" messages. Having set
error_reporting = E_ALL & ~E_DEPRECATED
and confirmed in phpinfo() that I was getting the expected value of 22527, I was still getting the wretched messages.

The cause?

This code, which an "include" called in my own coding as I launched each page:
error_reporting  (E_ALL);

doh!

(If you've found this, perhaps that is your problem, too?)

No comments: