1--TEST-- 2Fatal error in a fiber with other active fibers 3--FILE-- 4<?php 5 6$fiber1 = new Fiber(function (): void { 7 try { 8 \Fiber::suspend(1); 9 } finally { 10 echo "not executed"; 11 } 12}); 13 14$fiber2 = new Fiber(function (): void { 15 \Fiber::suspend(2); 16 trigger_error("Fatal error in fiber", E_USER_ERROR); 17}); 18 19var_dump($fiber1->start()); 20var_dump($fiber2->start()); 21$fiber2->resume(); 22 23?> 24--EXPECTF-- 25int(1) 26int(2) 27 28Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in %s on line %d 29 30Fatal error: Fatal error in fiber in %sfatal-error-with-multiple-fibers.php on line %d 31