Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58670 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31149 invoked from network); 6 Mar 2012 16:22:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 16:22:21 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:48378] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/A6-32184-8B9365F4 for ; Tue, 06 Mar 2012 11:22:18 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 09FC2700044B; Tue, 6 Mar 2012 16:22:13 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id fP2b5bX6UAJ6; Tue, 6 Mar 2012 16:22:12 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 421047000449; Tue, 6 Mar 2012 16:22:11 +0000 (WET) Received: from slws007.slhq.int (a79-168-248-114.cpe.netcabo.pt [79.168.248.114]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id DF5872008821; Tue, 6 Mar 2012 16:22:10 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "PHP internals" , "Alan Knowles" References: <4F563667.7080006@akbkhome.com> Date: Tue, 06 Mar 2012 17:22:00 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: <4F563667.7080006@akbkhome.com> User-Agent: Opera Mail/11.61 (Win32) Subject: Re: [PHP-DEV] consider reverting E_ALL with E_STRICT From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Tue, 06 Mar 2012 17:08:07 +0100, Alan Knowles wrote: > [...] > 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... Whatever the merits, this change was discussed and approved unanimously with 58 votes in favor (see https://wiki.php.net/todo/php54/vote ). There would have to be a very compelling reason to revert this change, especially in a minor version. Moreover, since you upgraded PHP 5.4, you can also change the global php.ini to exclude E_STRICT. If your applications change the error reporting level, then, if they are sane, they do it in a centralized place, which would also be easy to change. Plus, it seems odd that you're running with display_errors in production. The "users see the errors and report them" seems even odder. What a waste of their time. Why don't you just log them? You can also automatically send e-mails when these errors occur (e.g. with an error handler -- from which, btw, you can exclude E_STRICT errors -- or with syslog). -- Gustavo Lopes