Search code examples
phperror-handlingerror-reporting

Eliminating DEPRECATED errors form the error_log in PHP


Is it possible to eliminate DEPRECATED messages from the PHP error_log?

I know I can use

~E_DEPRECATED 

to keep them from the display but is there any way to keep them out of the error_log as well?


Solution

  • This may be a bug: http://bugs.php.net/bug.php?id=48843

    The right way to keep that message out of your logs is to replace the deprecated code :)