--TEST-- GH-15108 006: Segfault with delegated generator in suspended fiber --FILE-- current()); var_dump($b->current()); $fiber = new Fiber(function () use ($a, $b, $g) { $a->next(); var_dump("not executed"); }); $ref = $fiber; $fiber->start(); ?> ==DONE== --EXPECT-- string(3) "foo" string(3) "foo" ==DONE==