--TEST-- Throw in multiple destroyed fibers after shutdown --EXTENSIONS-- fiber --FILE-- start(); $fiber2 = new Fiber(function (): void { try { Fiber::suspend(); } finally { throw new Exception('test2'); } }); $fiber2->start(); Fiber::suspend(); }); $fiber->start(); echo "done\n"; ?> --EXPECTF-- done Fatal error: Uncaught FiberExit: Fiber destroyed in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php:%d Stack trace: #0 %sthrow-in-multiple-destroyed-fibers-after-shutdown.php(%d): Fiber::suspend() #1 [internal function]: {closure}() #2 {main} Next FiberExit: Fiber destroyed in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php:%d Stack trace: #0 %sthrow-in-multiple-destroyed-fibers-after-shutdown.php(%d): Fiber::suspend() #1 [internal function]: {closure}() #2 {main} Next Exception: test1 in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php:%d Stack trace: #0 [internal function]: {closure}() #1 {main} Next FiberExit: Fiber destroyed in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php:%d Stack trace: #0 %sthrow-in-multiple-destroyed-fibers-after-shutdown.php(%d): Fiber::suspend() #1 [internal function]: {closure}() #2 {main} Next Exception: test2 in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php:%d Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in %sthrow-in-multiple-destroyed-fibers-after-shutdown.php on line %d