Noong 06:24 AM 4/23/2005, Ang sabi ni Richard Lynch...
Is an undefined function one of the examples? If not, try one of those.
I use the examples given in the example and it works but I'm not after errors inside a function. I'm trying to see, what if I forgot to create a function or what if I mistyped a function, then it should trigger a fatal error using the custom error handler.
Also, did you remember to call http://php.net/set_error_handler as well as to define the function?
As I've said, I copied the sample given from the manual so here it is: $old_error_handler = set_error_handler("userErrorHandler");
No, I did not define the function because like I said, that's what I'm after. What if I mistyped a function or forgot to define a function or the file containing the function goes missing, etc.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php