Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103992 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82724 invoked from network); 1 Feb 2019 20:03:56 -0000 Received: from unknown (HELO mail-ot1-f66.google.com) (209.85.210.66) by pb1.pair.com with SMTP; 1 Feb 2019 20:03:56 -0000 Received: by mail-ot1-f66.google.com with SMTP id 81so6567882otj.2 for ; Fri, 01 Feb 2019 08:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XVc7eRetdHeUy9Zi0afEmTi0zztUndMejmskFHrSjqI=; b=Fod/WU7FX8zc0+5CGgidtqgZOT4AJw8aEEs9xJZZEx6VW1r+FopS8W9jUNthPxjxGQ t349ttV7HnfQvc3f3Oaeyi3yfrlbSWiR1RrwiVN8rut1SDyu2kWzVQmi5M9tUctzxOUy boQn25tQQpEM1GOdz9XpnmPZMWbX23jRMkJifKwTkjZGjtLbA9Qzh4CzWtMVBhTyiEht ntqwwj93VJv7ubV9qElJHEpcpsTG/uad7+oJMNJAUnSDxBnPF/rOxBWFTSr5h/1OnWTQ 2P6YoSqfbtwwdabi7YpvYwVwgqnvYCBu3+bgdY6dB6JAhBFI6HlFkgZX5W1A7Xx7TLNm o6eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XVc7eRetdHeUy9Zi0afEmTi0zztUndMejmskFHrSjqI=; b=Qf3KjDwemxP8At72dhPXc82zrU12d06QnBhoUVL+xIvJe9NqH3ETh+BLei3nDLsKCl NEPAgrdKq/Fhm8A/8i6nYCA7ND7Dc145vaONpyDqQNH0heWdlFNPrps1bxaiLVICcXyQ ACIF0dETTD5b4GPPTN7Ot6rsFUHDGtf5hfvSR+SsGOMj6QtM9Y4I0+k+NiFMP8jLNkaG brBI/Iq2udh29YJkoUIFZOBb0qPsgscwqn3vnMOzrZwixcILUnNFE+EyhmLEcYFAZzBP gkmojI/n+7nh8pLY+51OJLqzemoM/bRflDWCV/+B/ejKsM/G5OL5CKHCdmZiCdyqh3A9 hpUg== X-Gm-Message-State: AJcUukca/Kl7PLAs1F00u3GtIxKAlMFFqOWesGm/TDaxuK66mm66GNat rYmd6JEjU/VF0Cj63U2oYnMZXaBfUn+qV5oVi64= X-Google-Smtp-Source: ALg8bN5VKR43DlHS6o6+lEl4MNjCpzwoIvNLQ6jfG1MrXbH7fdWUPl0enXHfWT3Q9NFiOubr7nUp5G6Kj0iyXy04sX4= X-Received: by 2002:a9d:1ee2:: with SMTP id n89mr29903566otn.262.1549039445814; Fri, 01 Feb 2019 08:44:05 -0800 (PST) MIME-Version: 1.0 References: <0243D3A4-2C15-4B31-81A8-C2E5892913F9@koalephant.com> <2d8efb96-ed1f-28e4-e0fe-603a2d0f1962@gmail.com> In-Reply-To: Date: Fri, 1 Feb 2019 17:43:53 +0100 Message-ID: To: Benjamin Morel Cc: Rowan Collins , Peter Kokot , Internals Content-Type: multipart/alternative; boundary="000000000000e934060580d7d9a9" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: mtkocak@gmail.com (=?UTF-8?Q?Midori_Ko=C3=A7ak?=) --000000000000e934060580d7d9a9 Content-Type: text/plain; charset="UTF-8" Totally agree with this. The new and old can exist both. We should be open to change. On Thu, 31 Jan 2019, 11:53 Benjamin Morel Please forgive my stubborness, too. I fail to see how WordPress supporting > PHP versions that have been EOL for YEARS can be of any help to the > community? These versions may have unpatched security holes, and > encouraging users to keep using them is a disfavour to the community IMO, > which can only delay adoption of newer versions, and lead to an even more > painful upgrade path when you have to upgrade N versions at once. My stance > on this is that projects written in PHP have to evolve together with the > language, and I'm personally not surprised to have to rewrite a few things > whenever a major PHP version is released (and I do maintain quite a number > of projects). Let me rephrase this: actually, I would be HAPPY to rewrite > my projects towards a more consistent PHP language. > > That being said, I know this opinion is a minority on this list, so let's > put it aside for a moment. > > Now what prevents PHP from adding consistent function names / APIs, and > deprecating the older ones? We can keep the old ones for 10 more years if > you wish, but at least new PHP code can start using the "correct" ones, and > progressively the share of PHP code out there using the old ones should > progressively get lower over the years, up to the point where we could > eventually decide that it's not worth keeping them. The thing is, if you > never start, the situation will never improve. > > You know the proverb: The best time to plant a tree was 20 years ago. The > second best time is now. > > Ben > > On Thu, 31 Jan 2019 at 11:30, Rowan Collins > wrote: > > > On Thu, 31 Jan 2019 at 07:34, Peter Kokot wrote: > > > > > Sorry, I didn't put my words correctly here. Not inconsistency. > > > Inconsistency is a fact, yes. I've meant the incapability of doing > > > something to fix this inconsistency. And it is becoming some sort of > > > stubborn belief and less and less people want to fix it. > > > > > > The RFC: Consistent function names [1] shows the magnitude of this. I > > > don't think every function listed there needs a change so it can be > > > greatly reduced. But still this can be done in several years to 10 > > > years or so (measuring over the thumb). > > > > > > > > > Hi, > > > > I'm sorry if I sound stubborn, but I have yet to see a reasonable answer > to > > the fundamental problem: the effort needed is not on the part of a few > > volunteers changing the language, it is effort by *every single user of > the > > language*, rewriting *every single PHP program ever written*. > > > > WordPress officially supports both PHP 5.2, released 13 years ago, and > PHP > > 7.3, released a couple of months ago; one of their biggest challenges in > > raising that bar is that they, too, have to persuade a community (the > theme > > and plugin authors) to change their code to match. That should give you > > some idea of how long old and new names would have to exist side by side, > > while we waited for everyone to rewrite all their code, and meanwhile, > the > > language would be *even more inconsistent*, because there would be extra > > ways of writing the same thing. > > > > Regards, > > -- > > Rowan Collins > > [IMSoP] > > > --000000000000e934060580d7d9a9--