Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71582 invoked from network); 24 Aug 2009 23:05:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2009 23:05:12 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.219.216 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.219.216 mail-ew0-f216.google.com Received: from [209.85.219.216] ([209.85.219.216:41925] helo=mail-ew0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/5D-03363-7AC139A4 for ; Mon, 24 Aug 2009 19:05:11 -0400 Received: by ewy12 with SMTP id 12so3267194ewy.24 for ; Mon, 24 Aug 2009 16:05:07 -0700 (PDT) Received: by 10.210.138.19 with SMTP id l19mr2095513ebd.45.1251155107465; Mon, 24 Aug 2009 16:05:07 -0700 (PDT) Received: from 89-dynamic.2014534.venues.thecloud.net (91-103-38-89.dynamic.thecloud.net [91.103.38.89]) by mx.google.com with ESMTPS id 5sm457083eyh.35.2009.08.24.16.05.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Aug 2009 16:05:06 -0700 (PDT) Message-ID: <4A931C9F.60502@lerdorf.com> Date: Tue, 25 Aug 2009 01:05:03 +0200 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: Greg Beaver , Stanislav Malyshev , 'PHP Internals' References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> <3EB779A6-0584-4368-B290-8026DEB960D3@pooteeweet.org> In-Reply-To: <3EB779A6-0584-4368-B290-8026DEB960D3@pooteeweet.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [patch] error masks From: rasmus@lerdorf.com (Rasmus Lerdorf) Lukas Kahwe Smith wrote: > > On 25.08.2009, at 00:54, Greg Beaver wrote: > >> 1) if a tree falls in the forest and there is no one there to hear it, >> do we still have to put up with the performance loss? >> 2) as long as the patch does not break any backwards compatibility >> (error logging still works as it always did independent of error_mask, >> user error handlers still get the same stuff), why would we care? There >> is a time and place for being academic about fixing things and it is >> called development, not production. > > > If you have bugs in production, you sure as hell want to know about .. > and encouraging people to ignore them is a recipe for disaster. > Stats "@fopen()" example is perfect here, so lets say we do add this > feature and people simply turn of error's entirely so that they can > instead write "fopen()", they feel all good about themselves, since they > handle the error locally and get a magical speed boost (noticeable or > not) .. all the while they are ignoring all sorts of E_NOTICES that > would indicate them that they have some serious security issues. > > Again, I am all for being able to totally ignore E_STRICT/E_DEPRECATED > in production .. but there is a time for fixing E_NOTICES .. and that > time is always! I don't see how this has anything to do with the patch in question. You seem to be arguing that we shouldn't let people turn off E_NOTICE in production. How is that related to the patch? -Rasmus