On Fri, May 5, 2006 8:08 am, Martin Alterisio \"El Hombre Gris\" wrote:
> And set_error_handler() returns NULL because there isn't a previously
> defined error handler, not because it failed.

Since it's documented to return NULL when it fails to set the error
handler, one would hope it does NOT return NULL if there was no
previously-defined error handler...  That would be bad.

You'd never be able to distinguish between the error condition NULL
and the no previous handler NULL. :-(

It probably returns FALSE, 0, or '' in that case, though the docs are
imprecise on that very point...  That may also have changed in
different versions of PHP as set_error_handler pre-dates TRUE/FALSE
values for a true BOOL datatype...

-- 
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

Reply via email to