1--TEST-- 2GC 008: Unreferensed object cycle 3--INI-- 4zend.enable_gc=1 5--FILE-- 6<?php 7$a = new stdClass(); 8$a->a = new stdClass(); 9$a->a->a = $a->a; 10var_dump($a->a); 11var_dump(gc_collect_cycles()); 12unset($a); 13var_dump(gc_collect_cycles()); 14echo "ok\n" 15?> 16--EXPECTF-- 17object(stdClass)#%d (1) { 18 ["a"]=> 19 *RECURSION* 20} 21int(0) 22int(1) 23ok 24