Re: Error Handler
| From: | Pinoy Ako | Date: | Sun, 24 Apr 2005 07:58:42 +0000 |
| Subject: | Re: Error Handler | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213755@lists.php.net to get a copy of this message | ||
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.