RE: [PHP] set_error_handler and parse errors

From: Date: Mon, 26 Mar 2001 08:39:00 +0000
Subject: RE: [PHP] set_error_handler and parse errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45587@lists.php.net to get a copy of this message
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:hall@apt7.com] Sent: 25 March 2001 19:35 To: php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45587) next »