Annotation of embedaddon/php/ext/standard/tests/strings/bug27276.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>