Re: [RFC] Deprecations for PHP 8.4

From: Date: Fri, 05 Jul 2024 17:11:13 +0000
Subject: Re: [RFC] Deprecations for PHP 8.4
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message


> Le 25 juin 2024 à 16:36, Gina P. Banyard <[email protected]> a écrit :
> 
> Hello internals,
> 
> It is this time of year again where we proposed a list of deprecations to add in PHP 8.4:
> 
> https://wiki.php.net/rfc/deprecations_php_8_4
> 


Hi,

* For each deprecation, it would be nice to provide explicitly the text of the deprecation notice so
that we can guarantee that it will be helpful for users, see https://github.com/php/php-src/issues/14320

* I don’t see the point of deprecating DOMImplementation::getFeature() instead of just removing
it? “DOMImplementation::getFeature() is deprecated, throw manually an Error exception instead.”

* About strtok(): An exact replacement of strtok() that is reasonably performant may be
constructed with a sequence of strspn(...) and strcspn(...) calls; here is an implementation using a
generator in order to keep the state: https://3v4l.org/926tC

—Claude





Thread (68 messages)

« previous php.internals (#124230) next »