Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115319 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54305 invoked from network); 6 Jul 2021 12:03:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jul 2021 12:03:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 88A41180532 for ; Tue, 6 Jul 2021 05:25: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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 6 Jul 2021 05:25:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4GK1wG6HNFz67p9 for ; Tue, 6 Jul 2021 14:25:02 +0200 (CEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by smtp.simply.com (Simply.com) with ESMTPSA id 4GK1wG4y7Wz67yD for ; Tue, 6 Jul 2021 14:25:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=givoni.dk; s=unoeuro; t=1625574302; bh=Fu5NhL9NWkHyFjGtF3JwnrshT/IHHkFwnHofIy75Jqg=; h=References:In-Reply-To:From:Date:Subject:To; b=WoOmu+HaB4uMZh8WiUJUx42MyFgEDHx0Ps8UUYOmhTUSdq2mEi9a0HVx0e64PvyQf LPTTrFkRgBwUm+EPARn4hnt8Rby2v29hijqzMSfWbudx8aKrI5Wmn2RDJEQkclAZc3 V+guLy/eq/DOjbwbd7WzNBm6k41TIikQREmwWMTg= Received: by mail-wm1-f50.google.com with SMTP id g8-20020a1c9d080000b02901f13dd1672aso1489961wme.0 for ; Tue, 06 Jul 2021 05:25:02 -0700 (PDT) X-Gm-Message-State: AOAM5316cEI/VI94abnc9LTR7RhUvBcBp6xUGJubEQbdFAuCtxe/6kOh jTSgy5ch2sL1feuWOA9LIghTdsW/Ut7PfAvmJaA= X-Google-Smtp-Source: ABdhPJyMHIALoCmGCtIY+x1Z0mLbu6k+eFqAfKuk5btKZa/gUv42fmVoHyAPYqMR9SteezEEbFYftg2eeeGhbSBoQjs= X-Received: by 2002:a05:600c:354d:: with SMTP id i13mr349503wmq.143.1625574302297; Tue, 06 Jul 2021 05:25:02 -0700 (PDT) MIME-Version: 1.0 References: <1dcefcec-a3e4-e773-4950-b11d377ecc7f@gmail.com> <122F660D-DE94-4DFE-A0E9-FEC202E89E3A@newclarity.net> <62eb8eff-e671-5b3b-5e25-2a5b38160fcd@gmail.com> <586591d0-8bbc-a42c-f92b-819b8fc6ac20@gmail.com> In-Reply-To: <586591d0-8bbc-a42c-f92b-819b8fc6ac20@gmail.com> Date: Tue, 6 Jul 2021 14:24:51 +0200 X-Gmail-Original-Message-ID: Message-ID: To: php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [VOTE] Deprecations for PHP 8.1 From: jakob@givoni.dk (Jakob Givoni) On Tue, Jul 6, 2021 at 10:30 AM Rowan Tommins wrote: > > Hi Mike, > > > > Instead I replied because your email strongly implied (stated?) that "deprecation required removal" > > I stand by that interpretation, which while not universal is very widely > used, and I think is more useful than a general hint at "bad practice". > > You spend most of your e-mail seeming to argue against it, and then seem > to say that actually you do agree with it after all, and all you're > saying is that sometimes the deprecation period should be longer: > > > > I am not advocating that. I am advocating we should consider making it: > > > > "features that are strongly discouraged will*probably* be removed in the next major version, but in some cases may be retained for one or more major versions." > > I'm totally OK with that. > > I do think that there should be a clear *plan* for removing each > deprecated feature, though. That plan might be "deprecate in 8.1, and > examine prior to 9.0 whether usage has dropped / the alternatives are > mature / etc". It might flat out be "deprecate in 8.1, but don't remove > until 10.0". > > Otherwise, the message becomes "this feature is kind of bad, and at some > point we might decide to drop it without further notice, but actually we > might not, so no hurry to remove it", which I just think isn't that helpful. > I think it would be very helpful. I would have loved to know that FILTER_SANITIZE_STRING was not considered a good choice when I recently researched how to improve an issue. Deprecation without a fixed removal version is better than no deprecation (because removal version was not agreed on). Actually I agree with everything that Mike said previously and I strongly suggest a policy that looks like this: Deprecation means no longer encouraged (strongly) and might be removed in a future (major) version. Before every new major version, review all deprecated features/usages and decide with a simple RFC if each of them should be removed, reviewing the current usage level and migration paths. Best, Jakob