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