@@ -69,8 +69,17 @@ PHP NEWS
69
69
. mb_detect_encoding is better able to identify the correct encoding for
70
70
Turkish text. (Alex Dowad)
71
71
. 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)
74
83
. mb_strtolower, mb_strtotitle, and mb_convert_case implement conditional
75
84
casing rules for the Greek letter sigma. For mb_convert_case, conditional
76
85
casing only applies to MB_CASE_LOWER and MB_CASE_TITLE modes, not to
0 commit comments