1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 09:03:04 +02:00
Files
archived-php-src/ext/mbstring
Alex Dowad 57e194e02d Fix compile error in Windows CI job caused by 0779950768
In 6fc8d014df, 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 commit 0779950768,
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.
2023-03-25 06:02:01 +02:00
..
2023-03-24 21:15:32 +02:00
2022-08-05 17:06:23 +02:00
2021-09-20 09:58:20 +02:00