Yep, you're right. But this actually makes sense. Parse errors mean that
your code is just plain wrong and cannot/will not run with any level of
error-reporting.
>From a technical stand-point it also makes a lot of sense. Imagine if the
parser fails 1/2 way through parsing code before it gets to the
error-handling function - it cannot call the registered function as it does
not know where it is. I've never seen a hacked version of PHP where this
behaviour is different.
-----Original Message-----
From: Dean Hall [mailto:[EMAIL PROTECTED]]
Sent: 25 March 2001 19:35
To: [EMAIL PROTECTED]
Subject: [PHP] set_error_handler and parse errors
Is it just me, or do parse errors get reported by the engine even if you use
your own error handler?
I've registered my own error handler with "set_error_handler()", but it
doesn't get called on parse errors -- the manual seems to hint that this is
the case (without actually saying it), and I searched the list archives and
came across someone who hacked the PHP source to make parse errors get
passed to the error handler. Anyone know for sure?
Dean.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]