derick          Mon Feb 23 14:45:17 2004 EDT

  Added files:                 
    /php-src/ext/standard/tests/strings bug27276.phpt 
  Log:
  - Added testcase for bug #27276
  
  

http://cvs.php.net/co.php/php-src/ext/standard/tests/strings/bug27276.phpt?r=1.1&p=1
Index: php-src/ext/standard/tests/strings/bug27276.phpt
+++ php-src/ext/standard/tests/strings/bug27276.phpt
--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!

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to