[PHP] Re: Error Handler

2005-04-24 Thread Pinoy Ako
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


Re: [PHP] Re: Error Handler

2005-04-24 Thread Richard Lynch
On Sun, April 24, 2005 12:58 am, Pinoy Ako said:
 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.

Perhaps it should but I don't think it does

Search the bugs database for more info.
http://bugs.php.net/

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