1--TEST--
2Silence operator does not leak into fiber
3--FILE--
4<?php
5
6$fiber = @new Fiber(function (): void {
7    trigger_error("Warning A", E_USER_WARNING);
8    Fiber::suspend();
9    trigger_error("Warning C", E_USER_WARNING);
10});
11
12@$fiber->start();
13
14trigger_error("Warning B", E_USER_WARNING);
15
16@$fiber->resume();
17
18trigger_error("Warning D", E_USER_WARNING);
19
20?>
21--EXPECTF--
22Warning: Warning A in %ssilence-operator-outside-fiber.php on line %d
23
24Warning: Warning B in %ssilence-operator-outside-fiber.php on line %d
25
26Warning: Warning C in %ssilence-operator-outside-fiber.php on line %d
27
28Warning: Warning D in %ssilence-operator-outside-fiber.php on line %d
29