- Added testcase for bug #27276

This commit is contained in:
Derick Rethans 2004-02-23 19:45:16 +00:00
parent 09d5b95871
commit 769dc0be75

View File

@ -0,0 +1,15 @@
--TEST--
Bug #27276 (str_replace tries to use obscene amounts of ram)
--FILE--
<?php
ini_set("memory_limit", "12m");
$replacement = str_repeat("x", 12444);
$string = str_repeat("x", 9432);
$key = "{BLURPS}";
str_replace($key, $replacement, $string);
echo "Alive!\n";
?>
--EXPECT--
Alive!