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

1.1     ! misho       1: --TEST--
        !             2: GC 015: Object as root of cycle
        !             3: --INI--
        !             4: zend.enable_gc=1
        !             5: --FILE--
        !             6: <?php
        !             7: $a = new stdClass();
        !             8: $c =& $a;
        !             9: $b = $a;
        !            10: $a->a = $a;
        !            11: $a->b = "xxx";
        !            12: unset($c);
        !            13: unset($a);
        !            14: unset($b);
        !            15: var_dump(gc_collect_cycles());
        !            16: echo "ok\n";
        !            17: ?>
        !            18: --EXPECT--
        !            19: int(2)
        !            20: ok

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