Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58666 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25556 invoked from network); 6 Mar 2012 16:08:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 16:08:19 -0000 Authentication-Results: pb1.pair.com header.from=alan@akbkhome.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alan@akbkhome.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain akbkhome.com designates 202.81.246.113 as permitted sender) X-PHP-List-Original-Sender: alan@akbkhome.com X-Host-Fingerprint: 202.81.246.113 akbkhome.com Received: from [202.81.246.113] ([202.81.246.113:42657] helo=akbkhome.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/75-32184-276365F4 for ; Tue, 06 Mar 2012 11:08:19 -0500 Received: from wideboyhd.local ([192.168.0.28]) by akbkhome.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Mailfort v1.2) (envelope-from ) id 1S4wvs-0003Xb-SW for internals@lists.php.net; Wed, 07 Mar 2012 00:08:13 +0800 Message-ID: <4F563667.7080006@akbkhome.com> Date: Wed, 07 Mar 2012 00:08:07 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: PHP internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-mailfort-sig: ebe6f97a38406516f2ccce60236af44e Subject: consider reverting E_ALL with E_STRICT From: alan@akbkhome.com (Alan Knowles) I just got caught on a production server with the 5.4 upgrade on debian, pretty much everything works fine, except the E_ALL change. I have to admit I missed the discussion where it was added, and searching for E_ALL or E_STRICT on marc is pretty difficult (it removes the E_ bit..) Anyway, this change is a bit of an bomb on the code on the first server to get hit with this, While i've never cared for E_STRICT (it's more like E_ANAL) - most of the warnings are pointless code tidy up's that only have pretty much zero cost/return in fixing. However, this change really kills code written by third parties, All our servers run with E_ALL on (eg. E_NOTICE is printed to end users) and we fix instantly any errors that the end users see, as they are frequently issues that should have been addressed. These applications are intra/extranet apps, not public websites. However with E_STRICT included we have to run around and find all the code, and change it to stuff like this: error_reporting(E_ALL & E_STRICT ? E_ALL ^ E_STRICT : E_ALL); Could we please revert that, and if people want an all encompasing error mode, call it E_ANAL, like it was supposed to be... Regards Alan