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
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php