You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mb-strlen): document invalid encoding ValueError and add shared snippets (#5418)
- Add mbstring.errors.encoding-invalid and mbstring.changelog.encoding-invalid
entities to language-snippets.ent for consistent documentation
- Use these entities in mb_strlen, mb_internal_encoding, and mb_encoding_aliases,
replacing per-function custom prose and fixing classname -> exceptionname
- Document that passing an invalid encoding to mb_strlen now throws a ValueError
as of PHP 8.0.0; previously an E_WARNING was emitted and false was returned
FixesGH-1132
Co-authored-by: lcatoire <la.catoire@gmail.com>
Now throws a <exceptionname>ValueError</exceptionname> if
1214
+
<parameter>encoding</parameter> is an invalid encoding.
1215
+
Previously, an <constant>E_WARNING</constant> was emitted
1216
+
and &false; was returned.
1217
+
</entry>
1218
+
</row>'>
1219
+
1204
1220
<!-- mcrypt notes -->
1205
1221
1206
1222
<!ENTITY mcrypt.parameter.cipher '<simparaxmlns="http://docbook.org/ns/docbook">One of the <constant>MCRYPT_ciphername</constant> constants, or the name of the algorithm as string.</simpara>'>
0 commit comments