1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00
Files
archived-php-src/ext/standard/tests/strings/bug33076.phpt
Antony Dovgal 3fb2cb298b fix more tests
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