summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_015.phpt
blob: be3c5eb9dbcf80b39e327029bb8e5fca8db8e103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
GC 015: Object as root of cycle
--FILE--
<?php
$a = new stdClass();
$c =& $a;
$b = $a;
$a->a = $a;
$a->b = "xxx";
unset($c);
unset($a);
unset($b);
var_dump(gc_collect_cycles());
echo "ok\n";
?>
--EXPECT--
int(2)
ok