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