--TEST-- Bug #70805 (Segmentation faults whilst running Drupal 8 test suite) (Memleak) --FILE-- b = new B; $a->b->a = $a; $i = 0; while ($i++ < 9998) { $t = []; $t[] = &$t; unset($t); } $t = [new C]; $t[] = &$t; unset($t); unset($a); var_dump(gc_collect_cycles()); --EXPECT-- int(2)