1--TEST-- 2Suspend in force-closed fiber, catching exception thrown from destructor 3--EXTENSIONS-- 4fiber 5--FILE-- 6<?php 7 8try { 9 (function (): void { 10 $fiber = new Fiber(function (): void { 11 try { 12 Fiber::suspend(); 13 } finally { 14 Fiber::suspend(); 15 } 16 }); 17 18 $fiber->start(); 19 })(); 20} catch (FiberError $exception) { 21 echo $exception->getMessage(), "\n"; 22} 23 24echo "done\n"; 25 26?> 27--EXPECTF-- 28Cannot suspend in a force-closed fiber 29done 30