--TEST-- Generator GC when the yield from parent chain does not reach the root --FILE-- current()); var_dump($gen2->current()); $gen1->next(); $gen1->next(); gc_collect_cycles(); ?> --EXPECT-- int(1) int(1)