diff options
| -rw-r--r-- | ext/standard/tests/strings/bug27276.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/bug27276.phpt b/ext/standard/tests/strings/bug27276.phpt new file mode 100644 index 0000000000..f27e1d560b --- /dev/null +++ b/ext/standard/tests/strings/bug27276.phpt @@ -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! |
