Re: [patch] error masks
| From: | Jani Taskinen | Date: | Tue, 25 Aug 2009 07:25:33 +0000 |
| Subject: | Re: [patch] error masks | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45386@lists.php.net to get a copy of this message | ||
On 08/25/2009 12:42 AM, Stanislav Malyshev wrote:
Hi!Just wondering why nobody hasn't suggested the obvious (?) alternative yet: Why not fix error_reporting to work like one expects. As in: If an error level isn't in it, then nothing happens. Adding an extra option to do that seems a bit overkill.. --JaniQuite boring to read this thread where two persons argue about something abstract. Stas, can you give a real life example where your patch is necessary..?Any code where you either use @ or error_reporting which is not -1 would benefit from it by not processing errors that go nowhere. I just looked at Zend Framework - with is pretty clean with regard to E_NOTICE/E_STRICT problems - and @ is used in dozens of classes around. The speedup would be probably not very big for whole RL application, but it's a 10-line patch, and little things help too.