Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119867 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48848 invoked from network); 10 Apr 2023 17:04:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Apr 2023 17:04:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 605471804D5 for ; Mon, 10 Apr 2023 10:04:58 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 10:04:54 -0700 (PDT) Received: by mail-pj1-f42.google.com with SMTP id v9so10315489pjk.0 for ; Mon, 10 Apr 2023 10:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681146294; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0v3P7SR+vqGShBn95LUKe3ShSLPR21mwg8pFgxn2RR0=; b=aCQXp59DDZJIf6Fc5mENO18jX/tcmDBLhwT2NE+JIGqabx6qkzWgcOcLkscD0gIuXg 8Ln527l+A3XSlGqN6filpv27JKaSqzToxlivCnwx3gljlW18BHqeToe202SWWNnx0fZ/ 9sXM0fANRzHJfkl++6e2LMYbDkGE1YYFPOOltOZEYvGbFEeoGGyGEh4Rzx9upzuZA+i6 tBkB0kMunbp9zludRD/d7F5bLn9SZqPeV+QM5//7wLvdIbMT9oezmQLkUPnuy5iosq0p 7z2Uzl4PmyfrbcQuFg7eprxtCsKQHGk3Mi40ueS+R4udifBjjS8PKx7gc5yV/N9I1T7K Uicg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681146294; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0v3P7SR+vqGShBn95LUKe3ShSLPR21mwg8pFgxn2RR0=; b=tXzSiPuFf8tK1H15Q8zjxkDXK1hFZBAUA1nGmr0mfzEqH9Ox/gzapRtmgPaKfzRIj0 epfxpxUFucNvdjIcYyOakdpnbvgYXLYvasb6cyjwZ+iCeV/w5yPi1dQ5/OAoGZDJ77sT 0BoerGSp+3piaqe1kWvi5WEi+EA2+VzIDIsRswy5yfahbquU1maWX4zjBzxi60nGAhaL c+MSLUaZbP+KNnZWaY0hkgXPcwKKp0GZRrG0a2KJWDKTTu1BQh1nnMn+V7l5mnuesTWk qBBDeDQxeOjuA7h5I+6Q7YI8Qgr/s/Q6tpmd3Lqp53M4gmHgc54HVk4+4l7P4wbarMqX yi8w== X-Gm-Message-State: AAQBX9e0BcIFtJJBwbYI9RoVHLhWUJ08Fp6I2uT702c+f+99eB/Jkumi BVt0iZgEABkereqJAAyYCU4ncsfVtiLeeOik1Cf1vMmi1kQ= X-Google-Smtp-Source: AKy350aYL3KGzcu1HYM6ynjFP2kvA/MAABqOh967hGfDR/JNOVgoeKviOTDVS84/zpVq0RHB6mDuVnIQc+MFXza7KzQ= X-Received: by 2002:a17:902:d510:b0:1a1:b305:f891 with SMTP id b16-20020a170902d51000b001a1b305f891mr3931212plg.9.1681146293427; Mon, 10 Apr 2023 10:04:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 10 Apr 2023 20:04:26 +0300 Message-ID: To: Pierre Joye Cc: Stephan Soller , PHP internals Content-Type: multipart/alternative; boundary="000000000000a2a38f05f8fe5fe7" Subject: Re: [PHP-DEV] Future stability of PHP? From: arvids.godjuks@gmail.com (Arvids Godjuks) --000000000000a2a38f05f8fe5fe7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 10 Apr 2023 at 19:18, Pierre Joye wrote: > 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 bu= t > 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 > Hello! I also want to add that PHP is purely developed by open-source contributor efforts who are limited in their numbers and not a lot of them are getting compensated for it (exceptions being specific people working for companies who have a vested interest in PHP development like JetBrains, hosting giants and some others. And now PHP Foundation is there to help people get paid for their crucial roles in PHP project and their dedicated time). You also have a world on your hands that is changing - everywhere you look things are going for a more typed approach. That's what developers of today expect. That's the reality of how modern libraries are developed and old libraries have been actively migrating to strict type code bases. This code quality improvement absolutely takes a huge load off those developers' shoulders. I'm seeing libraries out there now that basically require PHP 8.1 as a minimum because Enums are all the rage and almost half the libraries I use have introduced them in their code in the latest versions and authors just flat-out tell you "use the older version of the lib or update your project" (and I have at least 7 of them in my code already and that project will never run on anything lower than 8.2). Some of the biggest libraries out there have fully adopted SemVer and will bump the minimal PHP version quite aggressively. And will tell you to pay for commercial support or deal with it on your own. And now the Union types are coming and I expect that to get adopted at a rapid pace by everyone and their dog. Just as owning your own house means you need to do the upkeep on a yearly basis or it will become a mess, the same is with code and not maintaining it - eventually, the roof will cave in and the costs of fixing it all will skyrocket. And, frankly, this is the feeling I get from a lot of this thread - the roof has collapsed and people are put into impossible positions of "no, you can't have the time or resources to update the project to the new PHP version, here are 20 KPI's for the next 3 months you need to hit". The codebase was run on a credit of "this will be fixed down the line". Well, the debt collectors now what their debt, their late fees and lawyers want their slice of the pie. Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Telegram: @psihius https://t.me/psihius --000000000000a2a38f05f8fe5fe7--