History log of /php-src/ext/mbstring/tests/gh9008.phpt (Results 1 – 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22
# c2bdaa48 20-Jul-2022 Christoph M. Becker

Fix GH-9008: mb_detect_encoding(): wrong results with null $encodings

Passing `null` to `$encodings` is supposed to behave like passing the
result of `mb_detect_order()`. Therefore, we

Fix GH-9008: mb_detect_encoding(): wrong results with null $encodings

Passing `null` to `$encodings` is supposed to behave like passing the
result of `mb_detect_order()`. Therefore, we need to remove the non-
encodings from the `elist` in this case as well. Thus, we duplicate
the global `elist`, so we can modify it.

Closes GH-9063.

show more ...