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