--TEST-- Bug #69446 (GC leak relating to removal of nested data after dtors run) --FILE-- y = new stdClass; } } $foo = new stdClass; $foo->foo = $foo; $foo->bad = new bad; $foo->bad->x = new stdClass; unset($foo); gc_collect_cycles(); var_dump($bar); --EXPECT-- object(bad)#2 (2) { ["x"]=> object(stdClass)#3 (0) { } ["y"]=> object(stdClass)#4 (0) { } }