summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug33076.phpt
blob: dafb8161b0f175c78e4efacd2b947be07c397f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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