1--TEST-- 2Cannot start a new fiber in a finally block in a force-closed fiber 3--FILE-- 4<?php 5 6$fiber = new Fiber(function() { 7 try { 8 Fiber::suspend(); 9 } finally { 10 echo "finally\n"; 11 12 $fiber = new Fiber(function() { 13 echo "not executed\n"; 14 }); 15 16 $fiber->start(); 17 } 18}); 19 20$fiber->start(); 21 22?> 23--EXPECTF-- 24finally 25 26Fatal error: Uncaught FiberError: Cannot switch fibers in current execution context in %sno-switch-force-close-finally.php:%d 27Stack trace: 28#0 %sno-switch-force-close-finally.php(%d): Fiber->start() 29#1 [internal function]: {closure}() 30#2 {main} 31 thrown in %sno-switch-force-close-finally.php on line %d 32