1--TEST--
2Resume terminated fiber
3--FILE--
4<?php
5
6$fiber = new Fiber(fn() => null);
7
8$fiber->start();
9
10$fiber->resume();
11
12?>
13--EXPECTF--
14Fatal error: Uncaught FiberError: Cannot resume a fiber that is not suspended in %sresume-terminated-fiber.php:%d
15Stack trace:
16#0 %sresume-terminated-fiber.php(%d): Fiber->resume()
17#1 {main}
18  thrown in %sresume-terminated-fiber.php on line %d
19