1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/standard/tests/strings/bug27276.phpt
2004-02-23 19:45:16 +00:00

16 lines
293 B
PHP

--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!