Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103907 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23975 invoked from network); 31 Jan 2019 14:13:21 -0000 Received: from unknown (HELO mail-yb1-f179.google.com) (209.85.219.179) by pb1.pair.com with SMTP; 31 Jan 2019 14:13:21 -0000 Received: by mail-yb1-f179.google.com with SMTP id l20so1107271ybl.9 for ; Thu, 31 Jan 2019 02:53:13 -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=PoyHY0+1bITBQksciObq6dTZ1eYQIQC2ilP14tiCfyI=; b=F3tO05/TVVfpb1yn8LCgTsZSZArOQjoNB3dc0xvx2fbbT6pR5KB7mM9/upPVsbxuCW v5XAmV/hzFHWSkPLwYjgVxGR2DUFulybHJv9yN5BWQ+aD6I6DpjTHZIkLA0vMQ4ea+yg o1si0HeUMVDB6R/NEVCUMk2AUFbA01RiNoN8D0TT6FpaRgPAZmB/OTCgHMP1fzCuSJX8 TgXlbyulBTQNIvZ3eGVI/y7CT3aUzf5m26uXMZ+ng18i35J3n14v4n4KeakN35X/TGV4 po9D9Odx8gw9UFTucPRpRSH73ZDH003zZuZYzTHjILFV4wDuyaUHvbSq2EdOJrfVAu3b f/BQ== 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=PoyHY0+1bITBQksciObq6dTZ1eYQIQC2ilP14tiCfyI=; b=Dtb5wXtSHsKOLSxBcUw0dbqqT4sb3Qb+zwbY232jxvcig8uyoMVh6U5zPSrFQpLffQ bDYpQoH8d1jIXT6nHUY8vVj2Nheqghu7IZzQb61QxBFdeNDXuHqEzAMTDyshWd/9AW9X /f+8yfPlcE0oC8KCyVekergLj2IovriRh8TOm87GbWsKjKgfzArGlvM3WduZ3z8RAuzL wnkumFT9Nwfr1x1FuUg4zqmRnTARTFx3+WIgh8xc3fbJ9BDiTV5Lb3YRxcdYjpUhyX2I BIB7VBkzp/3Mr1n8bKgCb1hoN7I8xwfHiUe5V8po7cMtelrQxuYKZIqiq1mBv3LTuO2o SREQ== X-Gm-Message-State: AHQUAuYNl5Fu7Eb2NT8CtKIvUgC0OSkSkqlH2SOVqFgEBkKnMMtXakXP ve0XaL7bZDjIGcOAbUz3tQRoqqEkaGAD1ppHdIM= X-Google-Smtp-Source: AHgI3Iamz2bYtbUJ6khlVYXNJ79WtoHmqv9qfiAAqpsBOE7Y5gz7m7Y6cgJgmnCHzBpp46TPiO6bToQNqnEfaQm8AFw= X-Received: by 2002:a25:2402:: with SMTP id k2mr953095ybk.515.1548931992557; Thu, 31 Jan 2019 02:53:12 -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: Thu, 31 Jan 2019 11:53:00 +0100 Message-ID: To: Rowan Collins Cc: Peter Kokot , Internals Content-Type: multipart/alternative; boundary="000000000000329dc70580bed5b3" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000329dc70580bed5b3 Content-Type: text/plain; charset="UTF-8" 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] > --000000000000329dc70580bed5b3--