Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58669 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29140 invoked from network); 6 Mar 2012 16:15:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 16:15:39 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:63713] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/36-32184-428365F4 for ; Tue, 06 Mar 2012 11:15:35 -0500 Received: by yhfq11 with SMTP id q11so2592727yhf.29 for ; Tue, 06 Mar 2012 08:15:27 -0800 (PST) Received-SPF: pass (google.com: domain of pierre.php@gmail.com designates 10.101.131.10 as permitted sender) client-ip=10.101.131.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pierre.php@gmail.com designates 10.101.131.10 as permitted sender) smtp.mail=pierre.php@gmail.com; dkim=pass header.i=pierre.php@gmail.com Received: from mr.google.com ([10.101.131.10]) by 10.101.131.10 with SMTP id i10mr10449219ann.72.1331050527941 (num_hops = 1); Tue, 06 Mar 2012 08:15:27 -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=Gysr8abHmL7yL2QbKSALEklhCryITM9XQffRF+gthUU=; b=TaGIVwIigrv2fXZ/7tq7PVFeJibIpjmiGMVAIl6XZX+QKc0ll8gp5gz5ckDQXVFfnm 1Zku3E4nC2617j2VAsADT4p8n9JGOHkZ4Li+tJVcd9ke/LVpX5QP5wxLu/o0oN0Goez/ dv6xcGgrdjiOnbdfheSDyqPPNxPyLa6Ezol0bl34H5OQ7JmF+KCrKgRjzs3QxEiG+ixT 6BskgBOmX4wRd9tk1Pfs6bT/D7cwas/nCoVI55Ihp7Q3CK59JAqoQ6UlM5b3z4u7KpOt NIy+xVO+cORc4jpqbldcBb/+1N/rfm7HGuaezdTR/Tgqgeu2psi1CM8nBQoxR27Bw6ls feKw== MIME-Version: 1.0 Received: by 10.101.131.10 with SMTP id i10mr8274536ann.72.1331050527848; Tue, 06 Mar 2012 08:15:27 -0800 (PST) Received: by 10.146.221.14 with HTTP; Tue, 6 Mar 2012 08:15:27 -0800 (PST) In-Reply-To: <4F563667.7080006@akbkhome.com> References: <4F563667.7080006@akbkhome.com> Date: Tue, 6 Mar 2012 17:15:27 +0100 Message-ID: To: Alan Knowles Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] consider reverting E_ALL with E_STRICT From: pierre.php@gmail.com (Pierre Joye) hi Alan! On a server you are supposed to use logs, not to display errors. Also if one does not like the default, he can always set the error reporting using what he likes to, per directory or globally. I see no reason to do revert what is actually a good thing. All means all, not all but this and that. Cheers, 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 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org