Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45372 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70223 invoked from network); 24 Aug 2009 23:02:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2009 23:02:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:44281] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/1D-03363-7FB139A4 for ; Mon, 24 Aug 2009 19:02:15 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id D93AC4144059; Mon, 24 Aug 2009 23:04:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R8dVuwn97MK6; Tue, 25 Aug 2009 01:03:59 +0200 (CEST) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 64E714144009; Tue, 25 Aug 2009 01:03:58 +0200 (CEST) Cc: Stanislav Malyshev , 'PHP Internals' Message-ID: <3EB779A6-0584-4368-B290-8026DEB960D3@pooteeweet.org> To: Greg Beaver In-Reply-To: <4A931A1C.804@chiaraquartet.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 25 Aug 2009 01:02:05 +0200 References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> X-Mailer: Apple Mail (2.936) Subject: Re: [PHP-DEV] Re: [patch] error masks From: mls@pooteeweet.org (Lukas Kahwe Smith) 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! regards, Lukas Kahwe Smith mls@pooteeweet.org