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