Re: Error Handler

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

 



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


[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