mirror of
https://github.com/php/php-src.git
synced 2026-04-09 09:03:04 +02:00
In6fc8d014df, pakutoma added some additional validation logic to mb_detect_encoding. Since the implementation of mb_detect_encoding has changed significantly between PHP 8.2 and 8.3, when merging this change down from PHP-8.2 into master, I had to port his code over to the new implementation in master. However, I did this in a wrong way. In merge commit0779950768, the ported code modifies a function argument (to mb_guess_encoding) which is marked 'const'. In the Windows CI job, MS VC++ rightly flags this as a compile error. Adjust the code to accomplish the same thing, but without destructively modifying 'const' arguments.