Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106826 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37025 invoked from network); 31 Aug 2019 05:50:19 -0000 Received: from unknown (HELO mout.kundenserver.de) (212.227.126.134) by pb1.pair.com with SMTP; 31 Aug 2019 05:50:19 -0000 Received: from oxbaltgw00.schlund.de ([172.19.246.6]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MjjSt-1iSCNl2T19-00lENa; Sat, 31 Aug 2019 05:23:06 +0200 Date: Sat, 31 Aug 2019 05:23:06 +0200 (CEST) Reply-To: Thomas Bley To: Matthew Brown Cc: Internals Message-ID: <1184971592.96503.1567221786282@email.ionos.de> In-Reply-To: References: <702735435.20836.1567008353931@email.ionos.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev60 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:umqVMpDKEL9XqNVUyu5TDk58xTtJrnQl3MYG8/iiZ/571bHfr7L P7ROYYKKCEK68M+lci2hT2yaGh8epnAlJcrlYvVTdKQq4/xOml1arn6Hl1JVOP+8EIglFBz dfqgC4PWV8EkeJQPWsa/tAaQMOt/2IFAWeeu6ro8GUXax8R+6KolcDO8OLgyKvLAb5Kld8a ztxr1OruADuHavVgmZJoQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9b38oMXAttQ=:1SV0iTNCxsCalXLuWJhFoK cfixKaIpnYSRZI0HyYimluJeURBxR/+0vt2NqVZkmnZPhzk5HzraG1FPXUh2prOhsJX9dNMlu /MKkv3+TGxOQnPnPZExTM4mYsvgDE3laAq9CZXgVeSkaOCN23tu6rW3cMYOKgKhD2D308hfSP mypTewipE6iGcsOMLIJ5IITzdQ+w6pPcL0R3v8fnabuezMiCS8WtzKZ6+gxScALViIMgQfRDN 8aPARPhE9Syp0/D2oa6wLRPQFnbsEPJQGPZ4O+KvAq+8mCyoTnhvRfdPyyYRu7dQDeoWLYEuL e/3NZkYzbENiDl14tdnxE7OphHLsvgjDULxCi57ZHq9saBVZXWUZd8gce6GLpcbDSl63Kc0JF Ai+U8KJMPlAYdEES0EjufpeiEVF1Ng5DBdOkVoho1swWFy6cwc4GIgJbn+pexB5Nh9EjZSCiQ qMdkbLNniZDwwJEgbsCKJWql9aXmQS7FRlILXFLU+doyVds2FIAnL9gnKHysM//Xb2kcGXvCR 7oAHJ4ESrewZUTyrjZW9ERHKamr2k2fKe1g96g+H5XrLjyjtiqptsSnTiOKUfaTHT+lJvD6Lp YkjCXmsl1F4kWRslSsdUUn/GdDqVUkW7YOgyUiH409leKF7edEMwANiKSOiOlXaDPZ9CFW0Th rC7fwELXdohJAh4RFrsGALvAjI4J7WXmV99ruyPtukcykdiGDWhl2eVvnSVupSRZuM455JhHt ZYDcnx3v4LqzeaE+hQKxGD3kMX/dWA22LAHKcLeDcD/acORkDZ98vS6wSfqY1/wFRPtOJ74HF JWLexIXjlIrm4/Fo6amJGDZ+Lq9FA== Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: mails@thomasbley.de (Thomas Bley) That's a good point, maybe a compromise is this: Matthew Brown hat am 28. August 2019 um 18:21 geschrieben: > > > FWIW: all the runtime notices in our codebase come from internally-created code. > > Requiring declare(strict_variables=1) to get this (better) behaviour punishes future users of PHP for our past mistakes. > > On Aug 28, 2019, at 12:05 PM, Thomas Bley wrote: > > > > Normally every code base has old and new code, some is actively maintained, some is probably third-party maintained, some is unmaintained. Business normally not calculates costs for upgrading, securing, GDPRing old code, so bigger changes always leave some people behind. > > I would prefer to write new code with sth like declare(strict_variables=1); or declare(SomeNamespace\Foo:strict_variables=1); That way, people can write new code in a better way, include new libraries and upgrade old code piece by piece without any big pressure. > > > > Regards > > Thomas > > > Matthew Brown hat am 28. August 2019 um 17:32 geschrieben: > > > > > > > > > It's essentially tech debt, and the language has allowed its users to > > > accrue a ton of it. > > > > > > The longer that's allowed (deprecations/warnings prolong the issue in my > > > opinion) the harder it will be to fix the issues. > > > > On Wed, 28 Aug 2019 at 10:56, Rowan Collins wrote: > > > > On 28 August 2019 15:22:22 BST, Matthew Brown > > > > wrote: > > > > > Looking at our notice logs, I estimate (fairly roughly) that it would > > > > > require about a week's worth of my time to fix these issues > > > > I honestly thought you were posting that as an argument against. A week of > > > > resource (plus the accompanying QA impact etc) is a significant investment > > > > for many organisations. That's why it has the potential to delay adoption > > > > of a new version, and why a long lead-in via deprecation or opt-in is > > > > necessary. > > > > Regards, > > > > -- > > > > Rowan Collins > > > > [IMSoP] > > > > -- > > > > PHP Internals - PHP Runtime Development Mailing List > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php