set_error_handler() with class, method as parameters problem.
| From: | Lukasz Karapuda | Date: | Fri, 13 Jun 2003 19:15:57 +0000 |
| Subject: | set_error_handler() with class, method as parameters problem. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151413@lists.php.net to get a copy of this message | ||
This is not exactly a bug report, because i am not sure where problem
is.
I am using PHP4.3.1 on Win2000/IIS.
I am setting a custom error handler through:
set_error_handler(array(&$objError, 'handleError')); where $objError
is an instance of an error handling class.
Then, i trigger a user error in the following way: trigger_error("test
error", E_USER_ERROR);
The problem is that sometime the custom error handler is invoked and
sometimes it is NOT. The times when it is not invoked i get the
following error: Fatal error: test error in C:\********.php on line
104
Does this mean that there is a problem in my Error Handler class or is
that a PHP issue with using a Custom Error Handler class?
Thanks in advance,
Lukasz Karapuda
@ luki@thenewline.com