Re: [patch] error masks

From: Date: Mon, 24 Aug 2009 18:57:58 +0000
Subject: Re: [patch] error masks
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-45351@lists.php.net to get a copy of this message
Well, couple of reasons: 1) Once you completely hide an error there is absolutely no trace what so ever that it has even occurred, even if its the slowdown of the native error handler being. 2) Debugging code becomes that much more trickier, since a single option effectively turns off PHP's error handling completely. As far as I can tell the only benefit of this patch is to allow error prone code to run faster by avoiding the slow down of generating error message strings when errors occurs, but the downside is abuse by people who just want errors to go away... IMHO the downside outweighs the upside. On 24-Aug-09, at 2:30 PM, Stanislav Malyshev wrote:
Hi!
While the patch is certainly interesting, I think masking errors is a really really bad idea.
Any argument as to why? --Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com


« previous php.internals (#45351) next »