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