History log of /PHP-8.2/ext/mbstring/tests/gh9008.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 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 ...