Re: set_error_handler() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux