1--TEST--
2Fatal error in new fiber
3--FILE--
4<?php
5
6$fiber = new Fiber(function (): void {
7    trigger_error("Fatal error in fiber", E_USER_ERROR);
8});
9
10$fiber->start();
11
12?>
13--EXPECTF--
14Deprecated: 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
15
16Fatal error: Fatal error in fiber in %sfatal-error-in-fiber.php on line %d
17