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
28Fatal error: Fatal error in fiber in %sfatal-error-with-multiple-fibers.php on line %d
29