xref: /PHP-8.1/ext/mbstring/tests/bug76319.phpt (revision 74859783)
1--TEST--
2Bug #76319: mb_strtolower with invalid UTF-8 causes segmentation fault
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7mb_substitute_character(0xFFFD);
8var_dump(mb_strtolower("a\xA1", 'UTF-8'));
9?>
10--EXPECT--
11string(4) "a�"
12