1--TEST-- 2Test destructor throwing with unfinished fiber 3--EXTENSIONS-- 4fiber 5--FILE-- 6<?php 7 8new class() { 9 function __destruct() { 10 $fiber = new Fiber(static function() { 11 Fiber::suspend(); 12 }); 13 $fiber->start(); 14 throw new Exception; 15 } 16}; 17 18?> 19--EXPECTF-- 20Fatal error: Uncaught Exception in %sthrow-from-destruct-with-fiber.php:%d 21Stack trace: 22#0 %sthrow-from-destruct-with-fiber.php(%d): class@anonymous->__destruct() 23#1 {main} 24 thrown in %sthrow-from-destruct-with-fiber.php on line %d 25