Re: Re: [patch] error masks

From: Date: Tue, 25 Aug 2009 17:40:39 +0000
Subject: Re: Re: [patch] error masks
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-45400@lists.php.net to get a copy of this message
Hello, On Tue, Aug 25, 2009 at 6:36 PM, Stanislav Malyshev<stas@zend.com> wrote: > Hi! > >> Considering that there shouldn't be any errors in the first place, this > > You must be kidding me. Any fopen of non-existing file, and loading of > non-perfect XML from third party produces errors. There is absolutely no way > you can write code that does anything useful that would guaranteedly never > produce errors. Moreover, any attempt to do it would make your code 2-3 > times slower, as you'd have to do most of the actions twice - once to check > if it would succeed and one to actually do it (as with file_exists/fopen) > and even then you could fail. > >> is of course a moot point. Sure, 3rd party code (PEAR pcakges?) might >> throw errors like crazy on PHP 5, they need to be *fixed* anyway. So if > > They won't be fixed. I am getting an impression nobody's actually reading > the comments, only writing. Once again: I'm not talking about people that > are looking for errors in their code to debug, I am talking about setups > disabling errors ON PURPOSE, because they DO NOT WANT them. Different use > case. > > BTW we discussed that in Chicago meetup and agreed we want to do it. Of > course, not that agreeing on anything ever would stand in a way of wasting > another bunch of time on repeating same stuff over and over and nobody > listening and blocking another useful feature. You're the one asking "What do you think?" :) People seem to think that this feature is another invitation to bad practice in 95% of the cases, and only useful to the last 5% of the people who know what they're doing... (like goto?) And no, IMO the agreements in Chicago or wherever should still pass through the ML or something, I assume lots of people were not able to go there, and lots of those people won't be happy with some of the decisions. Best, > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com   http://www.zend.com/ > (408)253-8829   MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal

« previous php.internals (#45400) next »