Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45400 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20577 invoked from network); 25 Aug 2009 17:40:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 17:40:46 -0000 Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.212 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.220.212 mail-fx0-f212.google.com Received: from [209.85.220.212] ([209.85.220.212:42784] helo=mail-fx0-f212.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/B3-22580-C12249A4 for ; Tue, 25 Aug 2009 13:40:45 -0400 Received: by fxm8 with SMTP id 8so2258608fxm.23 for ; Tue, 25 Aug 2009 10:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=nkaOwA24RzKNgrJArEy0tgmj/OjwI6tEFgz3kf5AoxM=; b=xUk4E1AoqoCJNXJTuPgHWlA5RkKU+iZzdluWYrvi1PmelR6SkGgHtBBWvGHXyZEhtE JheYSiXrFHY0yCVO7NSs4ugjiawdUyKzfNbaOTTDhKgJoirftgMEuOmoq9mYbZ99/Xae LMGrum5kyIm+bOUvKkmcZ4mHaKIhGdtQvbYyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=dujuHO0dSS8Qi0a9496UwHAJKSe3/l7b96AZ90l7zGu7PK9hwJecmRoPsBhkMxnnXZ TSaOWyRNYKhjb5PLnXoCMI0VxtNUALpseih7tJ9GqHyHbf8kXRp1oKsOJjKC9tMYZ0/x S3o20AaxeY9xhVQ+/MSEF7yZwq0wTTXUImrmw= MIME-Version: 1.0 Sender: ekneuss@gmail.com Received: by 10.204.26.150 with SMTP id e22mr951561bkc.68.1251222039722; Tue, 25 Aug 2009 10:40:39 -0700 (PDT) In-Reply-To: <4A941315.9070300@zend.com> References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> <39F20BFC-DAA0-4403-A52E-62CE5F4CF0FE@prohost.org> <4A9346CA.3070608@chiaraquartet.net> <4B0E7BED-C2AE-4BE5-B6CA-00B810168961@prohost.org> <4A938706.8060600@zend.com> <4A941315.9070300@zend.com> Date: Tue, 25 Aug 2009 19:40:39 +0200 X-Google-Sender-Auth: daa737f1c7b46d31 Message-ID: To: Stanislav Malyshev Cc: Derick Rethans , Ilia Alshanetsky , Greg Beaver , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [patch] error masks From: webmaster@colder.ch (Etienne Kneuss) Hello, On Tue, Aug 25, 2009 at 6:36 PM, Stanislav Malyshev 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 neve= r > 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 che= ck > 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 wastin= g > 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 =A0 http://www.zend.com/ > (408)253-8829 =A0 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal