Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84669 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76719 invoked from network); 13 Mar 2015 09:02:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 09:02:34 -0000 Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.173 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.173 mail-we0-f173.google.com Received: from [74.125.82.173] ([74.125.82.173:41054] helo=mail-we0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/0D-24603-9A7A2055 for ; Fri, 13 Mar 2015 04:02:33 -0500 Received: by wesw62 with SMTP id w62so21803390wes.8 for ; Fri, 13 Mar 2015 02:02:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=tFzkD3aeC4mKhJAbt/XHio9f3hW9A2DQujdiIuQLeY4=; b=kYGtPe4w6C08PAL1FjyNgdCyDT6PH07VK2FHLtl4+YvRWgCa9i8iL1Of+AqueMxjSM JNLIIyKgwD0hmVmu2OYTUj+MOG0jgwkPYtW8DUoPEoQyjDPkPtnP6bqRxjCB1ESaTTTw AcKH7RUghNaH4YGvhOL5orP6NJ6FCxGrCRlGKDzSsecYUjFUr2lHgBjpmEAo/C+NZw0E SjdAwSp7D3zVNm4F+CO0Dt5j6t9qPznpUwi92dWIjXpwqUKQ5TUo/f8Jt2dYly/aGsvP YeWxTXhW90J46yM3wE4KnDMI8GtZgSGzzVLkBAbkYMZ19ixPRoXN0hWlAWIk5/3acVYL 1JVA== X-Received: by 10.194.236.200 with SMTP id uw8mr92672712wjc.10.1426237350923; Fri, 13 Mar 2015 02:02:30 -0700 (PDT) MIME-Version: 1.0 References: <54FF8CED.5030701@gmail.com> <54FFC96D.6090004@gmail.com> <1579682575.9673.1426064704052.JavaMail.open-xchange@app06.ox.hosteurope.de> <55000A88.1030909@lsces.co.uk> In-Reply-To: Date: Fri, 13 Mar 2015 09:02:30 +0000 Message-ID: To: marcio3w@gmail.com, Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=089e01493f60aad443051127c22e Subject: Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count From: patrickallaert@php.net (Patrick ALLAERT) --089e01493f60aad443051127c22e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le mer. 11 mars 2015 =C3=A0 22:44, Marcio Almada a =C3=A9crit : > 2015-03-11 6:27 GMT-03:00 Lester Caine : > > > On 11/03/15 09:05, wp12173047-156224 wp12173047-156224 wrote: > > > Most of the examples being shown are examples of simple bad programming > > practice that needs fixing anyway, and I would expect a proper code > > review to have picked them up, so don't see that adding the check in PH= P > > is essential. It would however be a useful addition but in the E_STRICT > > category ... not that I want to maintain that, but being able to ignore > > those errors until such time as it is appropriate to fix them. > I don't really see how this favors E_STRICT over E_NOTICE as any of this type of errors can be displayed/hidden independently. > I think this is a valid argument to keep the E_STRICT error level option > for the secondary voting. > That's a very useful information, thanks :) > It also depends on your perception of E_STRICT. This level has been introduced in 5.0 without being part of E_ALL in order to, among other things, avoid too much pain in the *** while migrating from 4.x to 5.x. As of 5.4, E_ALL contains E_STRICT and the difference between E_STRICT and E_NOTICE/E_WARNING is certainly not in terms of severity. Using an undefined variable or property =3D> notice. Trying to get property of non-object =3D> notice. Use of undefined constant =3D> notice For this reason, I think we should use the standard notice/warning/error levels as much as possible. You may take a look at Nikita's "Reclassify E_STRICT RFC" for more info about it. https://wiki.php.net/rfc/reclassify_e_strict Cheers, Patrick --089e01493f60aad443051127c22e--