1--TEST--
2Resume terminated fiber
3--EXTENSIONS--
4fiber
5--FILE--
6<?php
7
8$fiber = new Fiber(fn() => null);
9
10$fiber->start();
11
12$fiber->resume();
13
14?>
15--EXPECTF--
16Fatal error: Uncaught FiberError: Cannot resume a fiber that is not suspended in %sresume-terminated-fiber.php:%d
17Stack trace:
18#0 %sresume-terminated-fiber.php(%d): Fiber->resume()
19#1 {main}
20  thrown in %sresume-terminated-fiber.php on line %d
21