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