1--TEST--
2Test unfinished fiber
3--FILE--
4<?php
5
6$fiber = new Fiber(function (): void {
7    try {
8        echo "fiber\n";
9        echo Fiber::suspend();
10        echo "after suspend\n";
11    } catch (Throwable $exception) {
12        echo "exit exception caught!\n";
13    }
14
15    echo "end of fiber should not be reached\n";
16});
17
18$fiber->start();
19
20echo "done\n";
21
22?>
23--EXPECT--
24fiber
25done
26