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