xref: /PHP-8.1/Zend/tests/bug34786.phpt (revision a302d116)
1--TEST--
2Bug #34786 (2 @ results in change to error_reporting() to random value)
3--FILE--
4<?php
5function foo($a,$b,$c) {
6echo "foo: ".error_reporting()."\n";
7}
8
9function bar() {
10echo "bar: ".error_reporting()."\n";
11}
12
13error_reporting(E_WARNING);
14echo "before: ".error_reporting()."\n";
15@foo(1,@bar(),3);
16echo "after: ".error_reporting()."\n";
17?>
18--EXPECT--
19before: 2
20bar: 0
21foo: 0
22after: 2
23