go to bug id or search bugs for
The function mb_detect_order() can receive either a comma separated list of encodings or an array of encodings. However, its return value varies based on whether it is given a string or an array that contain the same values.
mb_detect_order() should return the same value regardless of which type is used for the encoding_list parameter. HHVM seems to not be affected by this.
When given a string, mb_detect_order() will return true if it finds at least one supported encoding in the list.
When given an array, mb_detect_order() will return false if it finds any non-supported encoding.
Add a Patch
Add a Pull Request
mb_detect_order() logic is broken and needed to be fixed.
It doesn't work as it should with multiple encodings since it is implemented.
Automatic comment on behalf of firstname.lastname@example.org
Log: Fix #76704: mb_detect_order return value varies based on argument type