[php-src] PR #12445: Remove long-deprecated mbstring INI settings

From: Date: Sun, 15 Oct 2023 19:11:43 +0000
Subject: [php-src] PR #12445: Remove long-deprecated mbstring INI settings
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23895@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12445 Author: alexdowad @Girgias very kindly opened a PR for the same issue a few years ago: #5334. Apparently, the INI settings mbstring.http_input, mbstring.http_output, and mbstring.internal_encoding were deprecated in PHP 5.6 but have never been completely removed yet. It seems that it is high time to remove them. I just reviewed the PR from @Girgias, and discovered that it makes some changes which are not needed and which will definitely cause BC breaks. This is the reason why the changes in #5334 are not OK: The internal mbstring functionality which could previously be accessed by (for example) setting mbstring.http_input was not accessible *solely* in that way. Rather than using mbstring.http_input, you could also set the INI setting input_encoding, and it would do the same thing. Likewise for mbstring.http_output; the same functionality could also be activated using the function mb_http_output. Or for mbstring.internal_encoding, you could call the function mb_internal_encoding. Since none of these features (such as the function mb_internal_encoding) are deprecated, we cannot remove any of the internal mbstring code which helps to implement them. All we can remove is the code which directly handles reads/writes to the obsolete INI settings. Some thorough review would really be appreciated here. Also, I would like to ask what section of UPGRADING it would be best to note this removal in. Or do we normally put a note in UPGRADING when deprecated features are removed? @nikic @Girgias @cmb69 @bukka @kamil-tekiela @youkidearitai

« previous php.git-pulls (#23895) next »