Re: [RFC] [VOTE] Deprecations for PHP 8.4
| From: | Christoph M. Becker | Date: | Tue, 30 Jul 2024 21:43:25 +0000 |
| Subject: | Re: [RFC] [VOTE] Deprecations for PHP 8.4 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124695@lists.php.net to get a copy of this message | ||
On 30.07.2024 at 21:20, Tim Düsterhus wrote:
> What prevented me personally from adding a "soft deprecation" to the
> documentation is, that the function is not actually deprecated and not
> slated for deprecation. It is not up to me to decide to soft deprecate
> something.
Well, yeah, that needs some discussion at least.
> And regarding your remark of not reaching folks, I agree. uniqid()'s
> documentation is already full of warnings, but folks still reach for it.
"I haven't looked at the documentation, because I know what uniqid()
does: it gives me a unique ID. I've read that 20 years ago in a great
tutorial." ;)
> I've proposed a deprecation instead of any other error level, because it
> is the least severe error level we have available: Libraries and
> Frameworks nowadays generally understand that deprecations are not hard
> errors and thus do not convert these to exceptions, but instead just
> direct them to a different log file / show them in the framework's
> debugging toolkit.
Thinking about it, deprecations are not really a problem, so no need for
E_STRICT, that would unlikely help. The actual problem is that some
projects try to be strict about deprecations (and would likely be about
E_STRICT either), and others wait until the functionality is no longer
availabe, anyway. There is probably no way to offer users a smoother
upgrade path.
Cheers,
Christoph