Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70313 invoked from network); 14 Mar 2015 00:38:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2015 00:38:12 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-la0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:35266] helo=mail-la0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/4D-34457-3F283055 for ; Fri, 13 Mar 2015 19:38:11 -0500 Received: by labjg1 with SMTP id jg1so2198579lab.2 for ; Fri, 13 Mar 2015 17:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Qvfdh/qHSQ0HuI41K0cNMKSJntmfJvx7szDppkLYKso=; b=pprC302KwDy9Gx1VBrOrTOEQky44LqleFF1Yt2ZA970c1wT0XnwftcLQwCtaC476o0 gkYEZzlDEX8U604QSJ13Efkf0Vx/14MK1BZXhcIj6OxIAwEjHxwYzz1iDaE4mdUcWaYR By2dSiNWazE1dHOI4IymA4Gqs9kJ3b2oyrqbnoDkt0E23EcJ46ek8lU3iDglgHcFeGqh +0TIhnl6idQ/GsSMfE+4hy+8IJmvrRiK4ZPVE3jAEhFcZGITioCZ97xyl2VhWfnL2fcq /l6MPwAirqmKqK/mWaKnX53nhZRhAG1yQtxJqDBL6qilvvA7+nyqpp66Le1Zpe8zQWMQ HsGw== X-Received: by 10.112.123.99 with SMTP id lz3mr31446817lbb.48.1426293487552; Fri, 13 Mar 2015 17:38:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.118.169 with HTTP; Fri, 13 Mar 2015 17:37:47 -0700 (PDT) Reply-To: marcio3w@gmail.com In-Reply-To: References: <54FF8CED.5030701@gmail.com> <54FFC96D.6090004@gmail.com> <1579682575.9673.1426064704052.JavaMail.open-xchange@app06.ox.hosteurope.de> <55000A88.1030909@lsces.co.uk> Date: Fri, 13 Mar 2015 21:37:47 -0300 Message-ID: To: Patrick ALLAERT Cc: Lester Caine , PHP internals Content-Type: multipart/alternative; boundary=047d7bf0f5feabcd8f051134d41f Subject: Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count From: marcio.web2@gmail.com (Marcio Almada) --047d7bf0f5feabcd8f051134d41f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi 2015-03-13 6:02 GMT-03:00 Patrick ALLAERT : > 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 programmin= g >> > 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 P= HP >> > is essential. It would however be a useful addition but in the E_STRIC= T >> > category ... not that I want to maintain that, but being able to ignor= e >> > 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 an= d > 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 > I talked to Nikita earlier today, in order to try to align the strict arg count RFC with https://wiki.php.net/rfc/reclassify_e_strict and the conclusion was the following: It's a good thing to reclassify E_STRICT as this simplifies PHP error model and resolves the currently unclear role of strict standards notices. As a supporter of Nikita's idea, I'm removing E_STRICT from the voting options. Consider this my collaboration to help to unifiy the error level model and go a bit farther from the current "error level buffet" state we got ourselves historically, on PHP. This leaves us with E_WARNING vs E_NOTICE and I'm sufficiently comfortable to allow a secondary voting between these two error levels. Thanks, M=C3=A1rcio --047d7bf0f5feabcd8f051134d41f--