Hi, On Wed, Jul 2, 2025 at 10:00 PM Gina P. Banyard <intern...@gpb.moe> wrote:
> Hello internals, > > It is this time of year again where we proposed a list of deprecations to > add in PHP 8.5: > > https://wiki.php.net/rfc/deprecations_php_8_5 > > Here are few notes on the ones that I don't agree with: > Deprecate backticks as an alias for shell_exec I think this might be too big BC break that might impact many scripts - would be good to see also if it impacts OSS projects. I guess it will impact even more non public code bases. > Deprecate the __sleep() and __wakeup() magic methods I'm not sure about this one. I don't think it's worth it. It's just an unnecessary BC break IMHO. I would also consider more ext/standard thing rather than language. > Deprecate the error_prepend_string and error_append_string INI directives I think it doesn't have a good enough reason to be deprecated and might be still used. I don't see any problem with keeping them. > Deprecate the report_memleaks INI directive I think this should be kept as one might not necessarily have time to fix it but still need to work reasonably with debug build so it makes sense to suppress it. > Deprecate the $http_response_header predefined variable I think it's too early for this. I would prefer to not deprecate it at this time because alternative is available only from 8.4... > Deprecate filter_input(), filter_input_array(), and filter_has_var() I think those functions might be useful in some cases. I would also like to see their current usage. The case of modification of super global is not exactly a usual thing so I wouldn't worry much about it. Kind regards Jakub