1--TEST--
2Fiber::getReturn() from unstarted fiber
3--FILE--
4<?php
5
6$fiber = new Fiber(fn() => Fiber::suspend(1));
7
8$fiber->getReturn();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber has not been started in %sget-return-from-unstarted-fiber.php:%d
13Stack trace:
14#0 %sget-return-from-unstarted-fiber.php(%d): Fiber->getReturn()
15#1 {main}
16  thrown in %sget-return-from-unstarted-fiber.php on line %d
17