1--TEST-- 2Bug #27276 (str_replace tries to use obscene amounts of ram) 3--FILE-- 4<?php 5ini_set("memory_limit", "12m"); 6$replacement = str_repeat("x", 12444); 7$string = str_repeat("x", 9432); 8$key = "{BLURPS}"; 9 10str_replace($key, $replacement, $string); 11 12echo "Alive!\n"; 13?> 14--EXPECT-- 15Alive! 16