Re: [PATCH] entry #35269
| From: | Derick Rethans | Date: | Wed, 11 Jan 2006 11:39:26 +0000 |
| Subject: | Re: [PATCH] entry #35269 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21475@lists.php.net to get a copy of this message | ||
On Wed, 11 Jan 2006, Tim Starling wrote:
> Suppression of fatals is an irritating misfeature. There's nothing worse
> than trying to work out where in tens of thousands of lines of code some
> idiot developer put an @ before a function invocation where the function is
> only available on some systems. In MediaWiki we use wfSuppressWarnings() and
> wfRestoreWarnings() instead of @, but of course that's slower to type and to
> execute, so the temptation is always there to use the evil @.
>
> If suppression of fatals could be switched off, even as an INI setting off
> by default, it would be a great help to developers.
error_reporting( E_ALL ^ (E_RECOVERABLE_ERROR | E_WARNING | E_NOTICE) );
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org