Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31270 invoked from network); 25 Aug 2016 07:01:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2016 07:01:45 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:53613] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/AE-10212-5D79EB75 for ; Thu, 25 Aug 2016 03:01:43 -0400 Received: (qmail 70789 invoked by uid 89); 25 Aug 2016 07:01:38 -0000 Received: from unknown (HELO mail-qt0-f178.google.com) (yohgaki@ohgaki.net@209.85.216.178) by 0 with ESMTPA; 25 Aug 2016 07:01:38 -0000 Received: by mail-qt0-f178.google.com with SMTP id 52so18662647qtq.3 for ; Thu, 25 Aug 2016 00:01:37 -0700 (PDT) X-Gm-Message-State: AE9vXwNb5mhoxWflEEROicldirP5MJy7w3fxgCMl67Q0GGG699+cJOQS2ikjzBhqQroNcLEEMnSyyPxRxDMNAQ== X-Received: by 10.237.53.206 with SMTP id d14mr8512651qte.83.1472108491628; Thu, 25 Aug 2016 00:01:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Thu, 25 Aug 2016 00:00:51 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Aug 2016 16:00:51 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Rodrigue Villetard Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Write down a deprecation policy From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Rodrigue, On Fri, Aug 19, 2016 at 10:45 PM, Rodrigue Villetard wrote: > First post here, so please be gentle and pedagogic with me if I am > misbehaviouring=E2=80=A6 > > I am here for a pre-RFC feedback. It=E2=80=99s not coding related, but mo= re about > convention. > > I=E2=80=99m a follower of the french mailing list about php internals whe= re we > discuss, chiefly thanks to Pascal Martin, where does the french php > community stand regarding RFC. > > Now and then, debates about RFC on the mailing list are polluted by this > simple argument : =E2=80=9CWhat!!!? That should not be done in minor vers= ion, but > go for major!=E2=80=9D. (recently, it was triggered by this one: > https://wiki.php.net/rfc/remove_utf_8_decode_encode) > > With some pals of this mailing list, we came to wrote this draft of RFC: > > objective : Write and follow a deprecation convention for PHP > draft : https://github.com/gorghoa/the-deprecated-rfc/blob/master/RFC.dok= u > > tl;dr: If it=E2=80=99s a BC, deprecate in next minor version unless it= =E2=80=99s security > related > > May we have your feedback on such proposal? Is it the right place to > discuss it? +1 for having a general guideline for depreciation and removal. Although I'm radical about utf8_decode/encode deprecation to get more attentions/opinions for utf8_encode/decode removal, I think following procedure would be good for a feature removal. - Document deprecation to the manual at any time. (Feature may be kept for= ever) - Raise E_DEPRECATED error on next major version. (If it should be removed in the future) - Remove deprecated feature on next major version. (Remove it if it should be removed) So if we decide to remove something now, actual removal will be PHP 9. P.S. utf8_decode/encode are "Shouldn't use functions" as they make code non I18N needlessly. According to the code, original author's intention was to implement various encoding support. I guess this wouldn't happen anymore. -- Yasuo Ohgaki yohgaki@ohgaki.net