mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
9d63f4dec1
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�"
|