We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1858014 commit c6ff710Copy full SHA for c6ff710
Zend/tests/fibers/error-reporting.phpt
@@ -0,0 +1,26 @@
1
+--TEST--
2
+Error reporting change reflected inside fiber
3
+--FILE--
4
+<?php
5
+
6
+error_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
16
+trigger_error("Notice B", E_USER_NOTICE); // Should be silenced.
17
18
+$fiber->resume();
19
20
+trigger_error("Warning B", E_USER_WARNING);
21
22
+?>
23
+--EXPECTF--
24
+Warning: Warning A in %serror-reporting.php on line %d
25
26
+Warning: Warning B in %serror-reporting.php on line %d
0 commit comments