Re: B3, pear segfault, and msgs about deprecated

From: Date: Thu, 18 Dec 2003 17:47:03 +0000
Subject: Re: B3, pear segfault, and msgs about deprecated
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-6550@lists.php.net to get a copy of this message
On Thu, 18 Dec 2003, Christian Schneider wrote: > Daniel Convissor wrote: > > It's the custom error handler in pearcmd.php. PHP doesn't pay attention > > to any error_reporting() settings when a custom error handler is > > established. Then, error_handler() doesn't account for the new warning > > level. > > Is it just me or is this undesired behaviour? I noticed this back when I > was playing around with error_handlers. No, it's desired behavior. > I think this should be treated as a bug and be changed for two reasons: > 1) It seems illogical that an error_handler is called for an error level > which is disabled in php.ini > 2) It's a performance issue since the custom error handler is called for > e.g. every access to an undefined array index even though I disabled > that warning. Performance and error handling don't go together. It's not a valid argument and the current behavior IS the way it should be. (Please search the archives for reasons, we discussed this before here). Derick

« previous php.internals (#6550) next »