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