--TEST-- GH-15866: Core dumped in Zend/zend_generators.c --FILE-- next(); } finally { print "Fiber finally\n"; } }); $canary->value = $fiber; $fiber->start(); // Reset roots gc_collect_cycles(); // Add to roots, create garbage cycles $fiber = $iterable = $canary = null; print "Collect cycles\n"; gc_collect_cycles(); ?> ==DONE== --EXPECT-- Collect cycles Canary::__destruct Generator finally Fiber finally ==DONE==