Skip to content

Commit 35185c4

Browse files
Split the mb_detect_encoding() screens at PHP 8.3
The non-strict change landed in 8.3.0, so 8.2 still prints the old result and one screen cannot cover both. The basic example is split too: its screen already showed only the 8.3 behaviour.
1 parent ac7eb8d commit 35185c4

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

reference/mbstring/functions/mb-detect-encoding.xml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,16 @@ var_dump(mb_detect_encoding($str, $encodings));
158158
?>
159159
]]>
160160
</programlisting>
161-
&example.outputs;
161+
&example.outputs.82;
162+
<screen>
163+
<![CDATA[
164+
bool(false)
165+
bool(false)
166+
string(8) "SJIS-win"
167+
bool(false)
168+
]]>
169+
</screen>
170+
&example.outputs.83;
162171
<screen>
163172
<![CDATA[
164173
string(5) "ASCII"
@@ -189,7 +198,16 @@ var_dump(mb_detect_encoding($str, ['ASCII', 'UTF-8', 'ISO-8859-1'], true));
189198
?>
190199
]]>
191200
</programlisting>
192-
&example.outputs;
201+
&example.outputs.82;
202+
<screen>
203+
<![CDATA[
204+
string(5) "UTF-8"
205+
bool(false)
206+
string(10) "ISO-8859-1"
207+
string(10) "ISO-8859-1"
208+
]]>
209+
</screen>
210+
&example.outputs.83;
193211
<screen>
194212
<![CDATA[
195213
string(5) "ASCII"

0 commit comments

Comments
 (0)