Annotation of embedaddon/php/Zend/tests/bug40770.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #40770 (Apache child exits when PHP memory limit reached)
        !             3: --INI--
        !             4: memory_limit=8M
        !             5: --SKIPIF--
        !             6: <?php
        !             7: $zend_mm_enabled = getenv("USE_ZEND_ALLOC");
        !             8: if ($zend_mm_enabled === "0") {
        !             9:        die("skip Zend MM disabled");
        !            10: }
        !            11: ?>
        !            12: --FILE--
        !            13: <?php
        !            14: ini_set('display_errors',true);
        !            15: $mb=148;
        !            16: $var = '';
        !            17: for ($i=0; $i<=$mb; $i++) {
        !            18:         $var.= str_repeat('a',1*1024*1024);
        !            19: }
        !            20: ?>
        !            21: --EXPECTF--
        !            22: Fatal error: Allowed memory size of 8388608 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d

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