Re: [RFC] Deprecations for PHP 8.6
| From: | Derick Rethans | Date: | Mon, 29 Jun 2026 10:53:24 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.6 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131575@lists.php.net to get a copy of this message | ||
On Mon, 22 Jun 2026, Gina P. Banyard wrote:
> Hello internals,
>
> It is this time of year again where we proposed a list of deprecations to add in PHP 8.6:
>
> https://wiki.php.net/rfc/deprecations_php_8_6
I think I am not in favour of the following:
- Deprecate returning from a finally block
If somebody uses a
return in a finally block, than this could just
as well be intentional.
- Deprecate the _() function alias for gettext()
AFAIK, this is heavily used as it was (is) the original (C) way of using
it. I don't see an impact analysis for this one, and unless it's having
*no* impact, I don't think we should remove it.
- Deprecate Metaphone Function
I don't see why this is useful. It causes no harm AFAICT.
- Deprecate dechunk filter
I believe that if you deprecate this as a filter, then there should be a
userland function that does the same thing (in a sane way).
cheers,
Derick
--
https://derickrethans.nl | https://xdebug.org | https://xdebug.cloud
Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support
mastodon: @derickr@phpc.social @xdebug@phpc.social