Re: How to ignore E_STRICT and E_NOTICE with error_handler callback

From: Date: Mon, 18 Apr 2005 08:44:02 +0000
Subject: Re: How to ignore E_STRICT and E_NOTICE with error_handler callback
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213253@lists.php.net to get a copy of this message
php@electroteque.org wrote:
Hi there i have an error handler callback within an error class which is also being used for pear errors. E_NOTICE and E_STRICT are still triggering this callback method, so i have to make a check that the code is not one of these. I have error_reporting to ignore both of these and still no luck, any ideas ?
put this at the top of the error handling function: if($errno == E_STRICT || $errno == E_NOTICE) return;

« previous php.general (#213253) next »