php-src/ext/standard/tests/strings/bug33076.phpt
2006-11-09 01:16:48 +00:00

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