1--TEST-- 2Resume previous fiber 3--FILE-- 4<?php 5 6$fiber = new Fiber(function (): void { 7 $fiber1 = Fiber::getCurrent(); 8 9 $fiber2 = new Fiber(function () use ($fiber1): void { 10 $fiber1->resume(); 11 }); 12 13 $fiber2->start(); 14}); 15 16$fiber->start(); 17 18?> 19--EXPECTF-- 20Fatal error: Uncaught FiberError: Cannot resume a fiber that is not suspended in %sresume-previous-fiber.php:%d 21Stack trace: 22#0 %sresume-previous-fiber.php(%d): Fiber->resume() 23#1 [internal function]: {closure}() 24#2 %sresume-previous-fiber.php(%d): Fiber->start() 25#3 [internal function]: {closure}() 26#4 %sresume-previous-fiber.php(%d): Fiber->start() 27#5 {main} 28 thrown in %sresume-previous-fiber.php on line %d 29