Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119869 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56470 invoked from network); 10 Apr 2023 18:16:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Apr 2023 18:16:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E731F18005B for ; Mon, 10 Apr 2023 11:16:05 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 10 Apr 2023 11:16:04 -0700 (PDT) Received: from oxbsltgw09.schlund.de ([172.19.249.26]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MKKd7-1q5Oyo2ZBf-00Lnmu; Mon, 10 Apr 2023 20:15:57 +0200 Date: Mon, 10 Apr 2023 20:15:57 +0200 (CEST) To: Pierre Joye , Stephan Soller Cc: PHP internals Message-ID: <519449444.2201244.1681150557408@email.ionos.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev40 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:OqRtVDeY2RX8VnSUjSW5Srpr5OAVxNwKYHaG8n79wfbCGR6FNVn NaM4jtbQCIQUEJXotKObS3ODFNcAJN68Y0VQUB9Wa8GTaenCiDUH7BBg5cU8c3pct58yOna VQEqF9I2tP7vH9493q72uBKFBQr22brluQOplATaHeIzUGAh5Oof56vwklunntDGMJ3gdQ6 lykk/jpSG5nkiX8wesM5A== UI-OutboundReport: notjunk:1;M01:P0:2hKMGosoSag=;CHOGCgFZdGU5XrrI2xs+c27//tI mG+BOTcMgCu1LYVt7HVWH2UIl7k4mhNmBfiJ5O99LS6hQMJGp5oehSbj9065KlWaoqFx2tqrm SpoXrLrBVniDxvkgwYRou9sCFIYdU1J1mhpFy3XH05Wb1+ElZD3YhVyzZtu868bYJjXR22r99 KwecTVeawlNYonp0UXVlg2atRkpVedg2rQGUphwxeHXaC/E6XR8RYkpkW7BXNCDz/vOPwH7+y tjw2g+AYgUEDz/yWO1N1mv/oUVjatU379blPlzBFNCknYKJp43C8l7DOsQw4V31tF2coHJaUe TGg7wQ8M/D6fCtJbdboqZNn5pYsXmD2fBpWCSeaVLjUe5Dy7hvqCD1Z/Pi7i7lIu54SXJBWGg vEzRbR/qjP/K56q0v9ccK4JHpv8S/p21pTx9XXSZt+NHga7Yxss2jQ+6a3g71wEeYXKNia2ef y7Qny8pf9cyiqjudaVP6eC63PVGzrY9Ei6FeCtQ1WxPxDKuZgBG3+bEsUytyhYNDw48RqLVQl Yl2hggAwDhaZJm+sbAXR0zrn36S5ihUGV/ZJcdtYEyvvPnAhLVH1x9F9FU05EAtYtgxCTP60J CsLiceN75GTu9T60V3qXU9/bomNu+g5tHE8Ep/VkAfVwuOSsQCnnoQ/s3ZoeOYxA6fU2NIrKr ZlfNj9cyx3lHpljlhLPg Subject: Re: [PHP-DEV] Future stability of PHP? From: mails@thomasbley.de (Thomas Bley) I fully understand your point, having more tests is the best thing to do. Unfortunately many old code bases are not written to be tested easily. There is excessive inheritence, traits, reflection, globals, static calls, missing DI, magic functions, feature flags, database dependancies (e.g. 1 request reads 40 tables with 500 queries), library/framework dependancies (some unsupported, unmaintained, deprecated, etc.). So people spend a few months to get the coverage from 10 percent to 20 or 30 percent and the problems are still the same. My point is that every hour being spend on old code is one hour less that can be spend on writing newer code, being better tested, following newer standards, etc. So having language levels would make things a lot easier. There are many more things that should be deprecated and removed, but cannot be done now due to BC breaks and the risks for negative votings on the rfcs. With language levels like Pierre Joye hat am 10.04.2023 18:17 CEST geschrieben: > > > hello, > > > On Sun, Apr 9, 2023, 1:37 AM Stephan Soller > wrote: > > > Hello, > > > > I'm sorry if this isn't the correct mailing list for that discussion but I > > couldn't find a more appropriate one where people actually know how the > > wind is > > blowing. > > > > A few days ago I migrated a project from PHP 7.1 to 8.2 and the amount of > > deprecations and fatal errors spooked me a bit (details below if you're > > interested). That got me wondering about the long-term stability of PHP > > (as in > > language and API breaks) and I looked at the RFCs. I got the impression > > that > > static typing has a lot of traction now and I have no idea of what the > > fallout > > might be of changing a dynamically typed language into a statically > > typed one. > > > I keep reading this in multiple languages, pr even more frameworks. > > I understand agency work, managers pushing new features instead of a > cleaning some legacy. > > however years of ignoring deprecation notices (very few were introduced > right before 8.0). > > Most of them could have been fixed within a couple of hours in any code > base, if they had tests. > > I would suggest, very very nicely, to review and rethink the development > flows of these projects instead of asking php to freeze. > > best, > Pierre