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