Re: error_handler

From: Date: Fri, 19 Dec 2003 23:06:25 +0000
Subject: Re: error_handler
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-6640@lists.php.net to get a copy of this message
At 21:02 19/12/2003, Daniel Convissor wrote:
On Fri, Dec 19, 2003 at 08:15:15PM +0200, Zeev Suraski wrote: You may very well shut all errors off in production code, and rely on everything going through your error handler. That already happens in ALL code which utilizes user defined error processing. Once a custom error handler is defined, all of the normal error processing gets turned off and error reporting settings are ignored.
Erm, that was kinda my point.
So, in PHP 4, there's no incentive for such programmers to set error_reporting to some other level.
Sure there is. You may shut off (or otherwise configure) error reporting site-wide, or application-wide, whereas you'd use the error handler only in parts of the app/site. Let alone the fact that it's not necessarily the same person developing the application and deploying it. In short, if you have applicative code in your error handler, it should not be dependant on site-specific setup of error_reporting. Zeev

« previous php.internals (#6640) next »