1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/mbstring/tests/bug76319.phpt
Nikita Popov 9d63f4dec1 Fixed bug #76319
While at it, also make sure that mbstring case conversion takes
into account the specified substitution character and substitution
mode.
2018-05-25 11:33:13 +02:00

10 lines
202 B
PHP
Raw Blame History

--TEST--
Bug #76319: mb_strtolower with invalid UTF-8 causes segmentation fault
--FILE--
<?php
mb_substitute_character(0xFFFD);
var_dump(mb_strtolower("a\xA1", 'UTF-8'));
?>
--EXPECT--
string(4) "a<>"