Annotation of embedaddon/php/Zend/tests/gc_006.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: GC 006: Simple array-object cycle
3: --INI--
4: zend.enable_gc=1
5: --FILE--
6: <?php
7: $a = new stdClass();
8: $a->a = array();
9: $a->a[0] =& $a;
10: var_dump($a);
11: unset($a);
12: var_dump(gc_collect_cycles());
13: echo "ok\n"
14: ?>
15: --EXPECTF--
16: object(stdClass)#%d (1) {
17: ["a"]=>
18: array(1) {
19: [0]=>
20: *RECURSION*
21: }
22: }
23: int(2)
24: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>