Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119844 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70037 invoked from network); 9 Apr 2023 23:45:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Apr 2023 23:45:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 509B91804A9 for ; Sun, 9 Apr 2023 16:45:02 -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_H2,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-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (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 ; Sun, 9 Apr 2023 16:45:01 -0700 (PDT) Received: by mail-vs1-f54.google.com with SMTP id k11so181641vsv.8 for ; Sun, 09 Apr 2023 16:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681083901; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rouShkDZHNeqJNxzP5dnlDAT2YX3fUdkNLJxQUjyy7w=; b=MKrXUHLtnak8aPXS6ieR4l4p7+uqSlaJw8U8/VM13GNrogyNnAQTgV7P6TpM8zFX/K puXq3EnMdTpvC1AVwFs9nFjftzrOpoQoul357jumpvDCC2BCg2awAVEVswIDcUugXQ+D vAkvHwlBE+NLumYD782q/nIoj3D8sX0kFIFU6zwDjsuORaDL02Ovn0+IMeIOYWh0B4en sZLC7caEj6QfaZ/RncYJRF11mBpsThkbwjU4bxpkfxOG+QB/P9hECk+4u14wG/119cZk YxrbzKOvuo20xBoEQekbMnPqT6zOTlNFJkIU+fMHziyEFKSwlNwEIRMZ2Kqsr/ZSt1q/ m8tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681083901; 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=rouShkDZHNeqJNxzP5dnlDAT2YX3fUdkNLJxQUjyy7w=; b=pBVRhTbhk+BtuxXHGdAU63BpQ7pbtS7SEfB9wxhYZKLjH3ljEUs/7dwTtB+QvZSNJm f0zjn2fjqZhhQ4A9v+hMikdcIBta48GihTveBiW9Ri8CNeaQ4PXPFwKWRGQM/gSuRisU Swkg/bRLl0fLYqojFDdrrH+meHuICrvvRvBtZz8xzbY1q6kCbEVFj+vEDou08YJ0wsiK qljoD+NX05N7r1C4DX3uYSivjOLlHSHOXlyN5jEY05H8kPMA10SAAvoUJ7QAdpP52X7U pboKASgaHZdUksof6vMxq+7QBXaBYgyfII41ZuDicumDNe82XJ0JOeiuc/LIlPIBPTuc zH9Q== X-Gm-Message-State: AAQBX9eVrTW1EqGbVHjQrcZZRPN6aj8l6FZFhtueVP/m11mYBnEB/OHs 410BsKee9DlZqDkgkrZpE7/82fKbf1A5WmE9wRk= X-Google-Smtp-Source: AKy350adbN/aIAKAoP1rpSTpRnH0Nmd3ZDcB8gue5r5yOfRyW6n4ae+98ol2NutOi+fGePD5lsl4Q1TH7BDjzbWmDXU= X-Received: by 2002:a67:e188:0:b0:422:1654:7737 with SMTP id e8-20020a67e188000000b0042216547737mr4827344vsl.3.1681083900721; Sun, 09 Apr 2023 16:45:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 9 Apr 2023 20:44:24 -0300 Message-ID: To: Kamil Tekiela Cc: Dan Liebner , Stephan Soller , PHP internals Content-Type: multipart/alternative; boundary="000000000000bd7f7105f8efd8c5" Subject: Re: [PHP-DEV] Future stability of PHP? From: deleugyn@gmail.com (Deleu) --000000000000bd7f7105f8efd8c5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 9, 2023 at 7:10=E2=80=AFPM Kamil Tekiela = wrote: > > But the cost is catastrophic. If you have a legacy codebase hanging ove= r > your head you probably know how hard it is to upgrade it. > > I wonder about this every time I hear this claim. What exactly changed in > PHP 8.0 that made the upgrade path so difficult? The upgrade to PHP 9 may > be a little more difficult because of some of the recent deprecations, bu= t > that's still years ahead of us. So what's exactly driving people away fro= m > PHP 8? Why is the adoption dwindling? > > I'd rather say that the roadblocks people are facing in upgrading legacy > projects are not specific to PHP 8, but rather a technical debt acquired > over the past 10-15 years. Even if nothing would change in PHP 8, people > would still complain about the upgrade because of unrelated reasons. But > please prove me wrong. Is there actually any change in PHP 8.0 that is a > major source of work? > > If PHP went in the wrong direction, let's suggest something to fix it. If > there are no suggestions for improvement then what are people complaining > about? > > > Regards, > Kamil > Here are the top-of-my-head most relevant stuff I've read over the years on the matter. https://yoast.com/developer-blog/the-2020-wordpress-and-php-8-compatibility= -report/ https://markbakeruk.net/2022/05/22/php-8-2-the-release-of-deprecations/ https://24daysindecember.net/2022/12/06/evolving-php/ https://24daysindecember.net/2022/12/19/maintenance-art/ https://mobile.twitter.com/jrf_nl/status/1459221549429542920 https://24daysindecember.net/2020/12/21/a-perfect-storm/ https://mobile.twitter.com/jrf_nl/status/1558589727766417411 Unfortunately I couldn't find where, but I remember reading that PHP 7.2 deprecation of non-countable types was one of the biggest "busywork" generator of the PHP 7 series. It made an extremely large impact at public and private projects across the world for something with questionable benefits. https://www.php.net/manual/en/migration72.incompatible.php#migration72.inco= mpatible.warn-on-non-countable-types Over the course of PHP 7 and 8, there were significant concerns on how problematic PHP deprecations and breaking changes were. Now we're starting to see the result of such concerns being ignored. This isn't the first time someone mentions on PHP internals that it's getting harder and harder to stay with PHP, but it's never really received with an open mind. It's either "you don't have to run deprecation-free code" or "you've had years to get rid of that deprecation error, tough luck if you didn't". I love PHP and I built my career around it. I have zero interest in starting from scratch in another language, but I've lost count on how many projects, friends and companies around me have already made the switch to Typescript. It's getting harder and harder to argue in favour of staying with PHP. --=20 Marco Deleu --000000000000bd7f7105f8efd8c5--