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