@@ -69,8 +69,17 @@ PHP NEWS
6969 . mb_detect_encoding is better able to identify the correct encoding for
7070 Turkish text. (Alex Dowad)
7171 . mb_detect_encoding's "non-strict" mode now behaves as described in the
72- documentation. Previously, it would return false if the very first byte
73- of the input string was invalid in all candidate encodings. (Alex Dowad)
72+ documentation. Previously, it would return false if the same byte
73+ (for example, the first byte) of the input string was invalid in all
74+ candidate encodings. More generally, it would eliminate candidate
75+ encodings from consideration when an invalid byte was seen, and if the
76+ same input byte eliminated all remaining encodings still under
77+ consideration, it would return false. On the other hand, if all candidate
78+ encodings but one were eliminated from consideration, it would return the
79+ last remaining one without regard for how many encoding errors might be
80+ encountered later in the string. This is different from the behavior
81+ described in the documentation, which says: "If strict is set to false,
82+ the closest matching encoding will be returned." (Alex Dowad)
7483 . mb_strtolower, mb_strtotitle, and mb_convert_case implement conditional
7584 casing rules for the Greek letter sigma. For mb_convert_case, conditional
7685 casing only applies to MB_CASE_LOWER and MB_CASE_TITLE modes, not to
0 commit comments