Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115300 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56772 invoked from network); 5 Jul 2021 11:55:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jul 2021 11:55:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5D2B51804DB for ; Mon, 5 Jul 2021 05:16:57 -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=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_SBL, URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 5 Jul 2021 05:16:57 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id f14so21476801wrs.6 for ; Mon, 05 Jul 2021 05:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Pr0QRaoi8nyknuWBn7lFklUoXj2smrp0AtH501SGSoA=; b=i5oIhg+/M1bhU++yqwPG21mTwJSOQuCJAAfwx7Un+yyY87+sypF/AF3y5U9/oYW45k kggxTp2Py56GICB5vgJRIaMj+97W6pZi1pWRirqfpJruJzTTSdANN6urn9Ik0pBOm4Nd +v5TCBB/VUlFYlhsigo9UNYSyJLKFNrKYS8Xn3Nu0qOEqqBx0FfSwvawBVEUyL8ptdcS 46G+EKOD2aq8RRIjiGnYhPogVv703VCh3i+/yEsFgsOWXkKBvQzkaKO5bcsDMWWRLMBa 7NAHo2E42x3kq95HSR4nrJo8jMp1wKPvO+E4d6C7jUcnPVncpYtqU+uuZKQNjlAvptpr 0OiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Pr0QRaoi8nyknuWBn7lFklUoXj2smrp0AtH501SGSoA=; b=UNgvWkPqtkKWsc/iNOypIDAMzbyW3+nEzq/ZQQ2tufTenXBK+v/Wjh0IK9CcLJGmEG RuVpEdRt/ftgkZ8t8MQBwHzB8ix+zvgq2g/3MFyXQty4NLlDpY5QAL5O+/a5SFTBcUt2 u56zEIJYNBZGuSMMGxArwpW66kG3x0l/Kv0mU85juy/3DmrBAe8tD3ccVWysonWs42Zx kbd7QcdzbGzqHO+0Fow35wlbs7DSrEpizMjQwmrvTwlApysougsGPkYQ5YMw1WUWwFnN 96p/BK4uEe/ncP3/slUhoTmb3/GUE0L7RZr9Y/9E4F7nKK0sOlzYn8ZQAPLDEg9gKD+R Ipfg== X-Gm-Message-State: AOAM532+8yN5+fs+GzU8FH+wcnish8yLo3g7cSdSSz7leG2ZScBoj9nw TD3QnJ0K7ZhEecgGM+bnE7+ctn22Hdw= X-Google-Smtp-Source: ABdhPJxdyq2/MhFbl/pKDnrXjqwynRIsdUp8p/8d6q0iQmlbMT0tHTRw1jgMqzHzUtLvT2/VcCAT8Q== X-Received: by 2002:adf:d218:: with SMTP id j24mr15533084wrh.203.1625487415698; Mon, 05 Jul 2021 05:16:55 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id o11sm11814432wmq.1.2021.07.05.05.16.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jul 2021 05:16:55 -0700 (PDT) To: internals@lists.php.net References: <1dcefcec-a3e4-e773-4950-b11d377ecc7f@gmail.com> <122F660D-DE94-4DFE-A0E9-FEC202E89E3A@newclarity.net> Message-ID: <62eb8eff-e671-5b3b-5e25-2a5b38160fcd@gmail.com> Date: Mon, 5 Jul 2021 13:16:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <122F660D-DE94-4DFE-A0E9-FEC202E89E3A@newclarity.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [VOTE] Deprecations for PHP 8.1 From: rowan.collins@gmail.com (Rowan Tommins) On 05/07/2021 12:39, Mike Schinkel wrote: > know that you, and others on this list, have chosen to define deprecation as including removal, but that is actually not the accepted definition on the web, nor is it in any way a requirement, it is just your preference. I stand corrected, I had not encountered contexts where it was defined differently. To be clear, I don't think contrasting "accepted definition" against "my preference" is quite right here; there are plenty of places that document the definition I am familiar with, e.g. * Foldoc (taken from the Jargon File): http://foldoc.org/deprecated * Wiktionary: https://en.wiktionary.org/wiki/deprecated Removal is also specifically mentioned in official documentation for plenty of PHP projects, e.g. * The description of the "@deprecated" tag in PhpDocumentor : https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/deprecated.html * The general migration guide for Symfony : https://symfony.com/doc/current/setup/upgrade_major.html#make-your-code-deprecation-free * The Drupal Core deprecation policy: https://www.drupal.org/about/core/policies/core-change-policies/drupal-core-deprecation-policy More directly relevant, the PHP manual at https://www.php.net/manual/en/errorfunc.constants.php currently describes E_DEPRECATED as: > Run-time notices. Enable this to receive warnings about code that will not work in future versions. Obviously, that could be changed to also include "features that are strongly discouraged but not currently planned for removal", but I'm still not convinced that that would be a useful change. If we can create and document a good alternative for strftime(), then why *not* mark it for future removal. And if we can't provide that alternative, what use is there in notices discouraging it? Regards, -- Rowan Tommins [IMSoP]