Skip to content

Commit 96bc008

Browse files
committed
Fix GH-2205 (mb_encoding_aliases() missing changelog entry for ValueError)
1 parent 96368da commit 96bc008

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

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

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,42 @@
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
3636
<para>
37-
Returns a numerically indexed array of encoding aliases on success,
38-
&return.falseforfailure;
37+
Returns a numerically indexed array of encoding aliases.
3938
</para>
4039
</refsect1>
4140

4241
<refsect1 role="errors">
4342
&reftitle.errors;
4443
<para>
45-
Emits an <constant>E_WARNING</constant> level error if
44+
Throws a <classname>ValueError</classname> if
4645
<parameter>encoding</parameter> is unknown.
4746
</para>
4847
</refsect1>
4948

49+
<refsect1 role="changelog">
50+
&reftitle.changelog;
51+
<informaltable>
52+
<tgroup cols="2">
53+
<thead>
54+
<row>
55+
<entry>&Version;</entry>
56+
<entry>&Description;</entry>
57+
</row>
58+
</thead>
59+
<tbody>
60+
<row>
61+
<entry>8.0.0</entry>
62+
<entry>
63+
If the <parameter>encoding</parameter> is unknown, a <classname>ValueError</classname>
64+
is now thrown; previously an <constant>E_WARNING</constant> was emitted,
65+
and the function returned &false;.
66+
</entry>
67+
</row>
68+
</tbody>
69+
</tgroup>
70+
</informaltable>
71+
</refsect1>
72+
5073
<refsect1 role="examples">
5174
&reftitle.examples;
5275
<example>

0 commit comments

Comments
 (0)