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

1.1     ! misho       1: --TEST--
        !             2: GC 016: nested GC calls
        !             3: --INI--
        !             4: zend.enable_gc=1
        !             5: --FILE--
        !             6: <?php
        !             7: class Foo {
        !             8:        public $a;
        !             9:        function __destruct() {
        !            10:                echo "-> ";
        !            11:                $a = array();
        !            12:                $a[] =& $a;
        !            13:                unset($a);
        !            14:                var_dump(gc_collect_cycles());
        !            15:        }
        !            16: }
        !            17: $a = new Foo();
        !            18: $a->a = $a;
        !            19: unset($a);
        !            20: var_dump(gc_collect_cycles());
        !            21: echo "ok\n"
        !            22: ?>
        !            23: --EXPECT--
        !            24: -> int(1)
        !            25: int(1)
        !            26: ok

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