Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10652 invoked from network); 25 Aug 2009 16:41:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 16:41:41 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:50377] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/D1-22580-344149A4 for ; Tue, 25 Aug 2009 12:41:40 -0400 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id BE0EDE1245; Tue, 25 Aug 2009 09:28:51 -0700 (PDT) Received: from [192.168.16.83] ([192.168.16.83]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Aug 2009 09:37:51 -0700 Message-ID: <4A941315.9070300@zend.com> Date: Tue, 25 Aug 2009 09:36:37 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Derick Rethans CC: Ilia Alshanetsky , Greg Beaver , 'PHP Internals' 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Aug 2009 16:37:51.0441 (UTC) FILETIME=[634D2410:01CA25A2] Subject: Re: [PHP-DEV] Re: [patch] error masks From: stas@zend.com (Stanislav Malyshev) 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. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com