Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36470 invoked from network); 6 Mar 2012 16:28:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 16:28:43 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:44084] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/E7-32184-93B365F4 for ; Tue, 06 Mar 2012 11:28:42 -0500 Received: by qcmt36 with SMTP id t36so2975473qcm.29 for ; Tue, 06 Mar 2012 08:28:39 -0800 (PST) Received-SPF: pass (google.com: domain of tyra3l@gmail.com designates 10.229.135.208 as permitted sender) client-ip=10.229.135.208; Authentication-Results: mr.google.com; spf=pass (google.com: domain of tyra3l@gmail.com designates 10.229.135.208 as permitted sender) smtp.mail=tyra3l@gmail.com; dkim=pass header.i=tyra3l@gmail.com Received: from mr.google.com ([10.229.135.208]) by 10.229.135.208 with SMTP id o16mr1991442qct.120.1331051319565 (num_hops = 1); Tue, 06 Mar 2012 08:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5w+/pZs+jDwl8atMp4BcxN9pJym4GBg1R69gq9jgkuM=; b=Rmwk4nEsHtAec06V2VTyRhYtSdf5WkMkHpv4eXAOXuAIYpRqOztC4kZ2pBnrQVUsxM +eKX0OGdHvmF0qumglQiQ5NonCPM3Xc3iyKsO+g9k0YRr0dIIcOaXdXGPeHK1NZHt1mf 742nkuljLC2EM4xPe7RKfgK16lG04N/cQji2CPQZUrb3+uR35BtDw4N2+ec9sTe4LGG6 VgXpklZtBWVMRX0AWvE81QDGj2NYKXU+KMtO5je3Lfq2kTgOTiGx4ZoyBq5GVxigz1Ar NFQZQ4gDeN7W4N4FkswzoBnoAB9eJyUKEScA2Cq9It+ZrrLl/IIFCXS8F+H2o3xyQTwg mfGA== MIME-Version: 1.0 Received: by 10.229.135.208 with SMTP id o16mr1732229qct.120.1331051319444; Tue, 06 Mar 2012 08:28:39 -0800 (PST) Received: by 10.229.232.207 with HTTP; Tue, 6 Mar 2012 08:28:39 -0800 (PST) In-Reply-To: <4F563667.7080006@akbkhome.com> References: <4F563667.7080006@akbkhome.com> Date: Tue, 6 Mar 2012 17:28:39 +0100 Message-ID: To: Alan Knowles Cc: PHP internals Content-Type: multipart/alternative; boundary=00248c6a66d612c44004ba958951 Subject: Re: [PHP-DEV] consider reverting E_ALL with E_STRICT From: tyra3l@gmail.com (Ferenc Kovacs) --00248c6a66d612c44004ba958951 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 6, 2012 at 5:08 PM, Alan Knowles wrote: > 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 t= o > 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 hav= e > 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 f= ix > instantly any errors that the end users see, as they are frequently issue= s > 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 it was proposed and voted in a "bulk" RFC, see http://www.mail-archive.com/internals@lists.php.net/msg51887.html the "Add E_STRICT to E_ALL" won by 58 to 0, so it was heavily supported by the voters, and that was one of the things that was already decided and commited in php6: http://www.mail-archive.com/internals@lists.php.net/msg21822.html I still think that E_STRICT can only serve it's purpose if our users are seeing those messages, on a relevant note, also check out this thread from Stas: http://www.mail-archive.com/internals@lists.php.net/msg52259.html --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --00248c6a66d612c44004ba958951--