Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32810 invoked from network); 13 Mar 2015 14:14:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 14:14:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.181 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.181 mail-we0-f181.google.com Received: from [74.125.82.181] ([74.125.82.181:42374] helo=mail-we0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/E5-32208-1D0F2055 for ; Fri, 13 Mar 2015 09:14:42 -0500 Received: by wesq59 with SMTP id q59so23570370wes.9 for ; Fri, 13 Mar 2015 07:14:39 -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=fMkPCMuo2KM+ur7BjHTvMY1+OgnFTGJj3a7Iti1ftn4=; b=goKQNmQRjQHuGvndy/s306/HATnJgAKXIiF9s4gHkJVN4kwPs6IAjF1Jjhdc2dBefz ANsSRhMgzFHSHBhe1/SQ85cs1WpM7NRP0myZDrvDNjCXvLUE6qXiCSKDj+AWIR2+iblt ZO3idQnyTU/DyKYKCWjjUDMugVc5wu5puSf9nh+OHKMfmX0/dSW2GgRKVMvXpFle/rkK IALXX/cTtJl2HUw7SCs8DuqqGWJRdpV3sqrGkGcfgH2rcYS9I7A8tvCb5XD2UgSGeLSq neqRxNyQ5NaJXKMCc8KmTwk367Y5ZrpQzca/2ypGkfrqy6CJrlsKJ4pVkLibFZJVnAoF UXoA== X-Received: by 10.194.175.202 with SMTP id cc10mr97653940wjc.27.1426256079249; Fri, 13 Mar 2015 07:14:39 -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> <5502E878.30901@lsces.co.uk> In-Reply-To: <5502E878.30901@lsces.co.uk> Date: Fri, 13 Mar 2015 14:14:38 +0000 Message-ID: To: Lester Caine , marcio3w@gmail.com Cc: PHP internals Content-Type: multipart/alternative; boundary=089e013d0f48f669b405112c1e1a Subject: Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count From: patrickallaert@php.net (Patrick ALLAERT) --089e013d0f48f669b405112c1e1a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le ven. 13 mars 2015 =C3=A0 14:39, Lester Caine a =C3= =A9crit : > On 13/03/15 09:02, Patrick ALLAERT wrote: > > 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/erro= r > > 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 > > > > I think the main point here is just like the PHP4->5 conversion path, > SOME areas that need upgrading should be flagged by default while others > should be able to be hidden until they need to be addressed. Perhaps > E_STRICT7 off by default, but if all of the 4->5 conversion stuff is now > reclassified then E_STRICT should be available to serve the same purpose > it did back then? > This is the subject I discussed this morning in the "Reclassify E_STRICT notices" thread: http://marc.info/?l=3Dphp-internals&m=3D142623927703931 Yet another level would probably be a mistake. So I wish we could try working on a way to easier the conversion path using a pattern that can be repeated over the time. --089e013d0f48f669b405112c1e1a--