Re: set_error_handler() fails

From: Date: Sat, 06 May 2006 09:18:48 +0000
Subject: Re: set_error_handler() fails
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-235675@lists.php.net to get a copy of this message
On Fri, May 5, 2006 6:20 am, icy wrote: > chris smith wrote: >> >> What does your code look like? > > I just realized that when called a second time, set_error_handler() > returns my custom error handler but it is never triggered. > Code looks like this: > > <?php > if (set_error_handler('core_error_handler', E_ALL) === NULL) I'm not sure E_ALL is kosher there, since E_ALL include E_ERROR, and E_ERROR can't be caught by an error handler... Try doing it without the E_ALL, since it's going to catch everything it can by default anyway. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#235675) next »