--TEST-- Fiber::getReturn() after bailout --SKIPIF-- --FILE-- getReturn()); }); $fiber = new Fiber(static function (): void { str_repeat('X', PHP_INT_MAX); }); $fiber->start(); ?> --EXPECTF-- Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) %sget-return-after-bailout.php on line %d Fatal error: Uncaught FiberError: Cannot get fiber return value: The fiber exited with a fatal error in %sget-return-after-bailout.php:%d Stack trace: #0 %sget-return-after-bailout.php(%d): Fiber->getReturn() #1 [internal function]: {closure}() #2 {main} thrown in %sget-return-after-bailout.php on line %d