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