mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
18 lines
269 B
PHP
18 lines
269 B
PHP
--TEST--
|
|
Bug #33076 (str_ireplace() incorrectly counts result string length and may cause segfault)
|
|
--FILE--
|
|
<?php
|
|
|
|
$value = str_ireplace("t", "bz", "Text");
|
|
|
|
var_dump($value);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
string(6) "bzexbz"
|
|
Done
|
|
--UEXPECT--
|
|
unicode(6) "bzexbz"
|
|
Done
|