xref: /PHP-8.3/ext/mbstring/tests/bug45722.phpt (revision 9308974f)
1--TEST--
2Bug #45722 (mb_check_encoding() crashes)
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7var_dump(mb_check_encoding("&\xc2\xb7 TEST TEST TEST TEST TEST TEST", "HTML-ENTITIES"));
8?>
9--EXPECTF--
10Deprecated: mb_check_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in %s on line %d
11bool(true)
12