--TEST-- Fiber::getReturn() after a fiber throws --FILE-- throw new Exception('test')); try { $fiber->start(); } catch (Exception $exception) { echo $exception->getMessage(), "\n"; } $fiber->getReturn(); ?> --EXPECTF-- test Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber threw an exception in %sget-return-after-throwing.php:%d Stack trace: #0 %sget-return-after-throwing.php(%d): Fiber->getReturn() #1 {main} thrown in %sget-return-after-throwing.php on line %d