Re: [PHP-DEV] [RFC] Deprecations for PHP 8.6

[email protected] (Derick Rethans)
Newsgroups php.internals
Message-ID <[email protected]>
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: @[email protected] @[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.