Re: [VOTE] Deprecations for PHP 8.1
| From: | Guilliam Xavier | Date: | Mon, 05 Jul 2021 12:03:26 +0000 |
| Subject: | Re: [VOTE] Deprecations for PHP 8.1 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115297@lists.php.net to get a copy of this message | ||
On Mon, Jul 5, 2021 at 1:39 PM Mike Schinkel <mike@newclarity.net> wrote:
> > On Jul 5, 2021, at 7:14 AM, Rowan Tommins <rowan.collins@gmail.com>
> wrote:
> >
> > On 05/07/2021 11:46, Patrick ALLAERT wrote:
> >> Did we ever deprecated something without the immediate intention of
> >> removing it?
> >
> >
> > What would that even mean?
>
> It would mean that although the functions are available and allowed, they
> are not recommended[1].
>
>
> > Surely a deprecation, by definition, is a notice that something is going
> to be removed.
>
> I 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.
>
> Indirectly from Wikipedia and voted as the top answer on StackOverflow
> here[2] (emphasis MINE):
>
> "deprecation is a status applied to software features to indicate that
> they should be avoided, typically because they have been superseded.
> Although deprecated features remain in the software, their use may raise
> warning messages recommending alternative practices, and deprecation MAY
> indicate that the feature will be removed in the future."
>
> So I am arguing for the legitimacy of retaining "deprecated" features if
> their removal would cause significant BC breakage, I'm not just trying to
> be a pendant.
>
> -Mike
> [1] https://whatis.techtarget.com/definition/deprecated
> [2]
> https://stackoverflow.com/questions/8111774/deprecated-meaning
>
Hi Mike,
Your links speak *in general*. However this is *specifically for PHP*:
https://www.php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-deprecated-error
(*emphasis* mine)
E_DEPRECATED: Run-time notices. Enable this to receive warnings about
code that *will not work in future versions*.
As for "significant BC breakage", isn't that what major versions are for?
(and with the current release plan, 9.0 would be for end 2025, i.e. 4 years
after 8.1)
Regards,
--
Guilliam Xavier