mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
While at it, also make sure that mbstring case conversion takes into account the specified substitution character and substitution mode.
10 lines
202 B
PHP
10 lines
202 B
PHP
--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<>"
|