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