1--TEST--
2Error reporting change reflected inside fiber
3--FILE--
4<?php
5
6error_reporting(E_ALL & ~E_USER_NOTICE);
7
8$fiber = new Fiber(function (): void {
9    trigger_error("Notice A", E_USER_NOTICE); // Should be silenced.
10    Fiber::suspend();
11    trigger_error("Warning A", E_USER_WARNING);
12});
13
14$fiber->start();
15
16trigger_error("Notice B", E_USER_NOTICE); // Should be silenced.
17
18$fiber->resume();
19
20trigger_error("Warning B", E_USER_WARNING);
21
22?>
23--EXPECTF--
24Warning: Warning A in %serror-reporting.php on line %d
25
26Warning: Warning B in %serror-reporting.php on line %d
27