xref: /PHP-8.3/ext/mbstring/tests/bug71606.phpt (revision 9308974f)
1--TEST--
2Bug #71606 (Segmentation fault mb_strcut + mb_list_encodings)
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7echo mb_strcut('&quot;', 0, 0, 'HTML-ENTITIES');
8echo 'DONE', PHP_EOL;
9?>
10--EXPECTF--
11Deprecated: mb_strcut(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in %s on line %d
12DONE
13