mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
16 lines
293 B
PHP
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!
|