1--TEST-- 2Multiple calls to constructor are prevented after fiber terminated 3--FILE-- 4<?php 5 6$fiber = new Fiber(function () { 7 return 123; 8}); 9 10var_dump($fiber->start()); 11var_dump($fiber->getReturn()); 12 13$fiber->__construct(function () { 14 return 321; 15}); 16 17?> 18--EXPECTF-- 19NULL 20int(123) 21 22Fatal error: Uncaught FiberError: Cannot call constructor twice in %scall-to-ctor-of-terminated-fiber.php:%d 23Stack trace: 24#0 %scall-to-ctor-of-terminated-fiber.php(%d): Fiber->__construct(Object(Closure)) 25#1 {main} 26 thrown in %scall-to-ctor-of-terminated-fiber.php on line %d 27