1--TEST-- 2Test fiber return value 3--EXTENSIONS-- 4fiber 5--FILE-- 6<?php 7 8$fiber = new Fiber(function (): string { 9 $value = Fiber::suspend("x"); 10 return $value; 11}); 12 13$value = $fiber->start(); 14var_dump($value); 15var_dump($fiber->resume($value . "y")); 16var_dump($fiber->getReturn()); 17 18?> 19--EXPECT-- 20string(1) "x" 21NULL 22string(2) "xy" 23