Re: [PATCH] - Check configured error level before reporting E_NOTICE messages

From: Date: Fri, 30 Oct 2009 14:18:51 +0000
Subject: Re: [PATCH] - Check configured error level before reporting E_NOTICE messages
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-45916@lists.php.net to get a copy of this message
On Fri, 30 Oct 2009, Arvind Srinivasan wrote: > When compiled with #ifdef ZTS, zend_error invokes pthread_get_specific. > > The performance analyzer tool indicated that zend_error was being > invoked during normal processing of requests, even though no error > messages were logged. The source of these calls were E_NOTICE > messages. > > Please review the attached patch which introduces a REPORT_ERROR macro > to avoid invoking the zend_error function when the error reporting > level indicates that E_NOTICE messages are not to be reported. > Although, all these codepaths are not executed, I guarded all E_NOTICE > messages using the REPORT_ERROR macro. This is a bad idea, because the error handler does other things as well. This is quite a bit of a BC break. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr

« previous php.internals (#45916) next »