summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34786.phpt
blob: ef0627633fcdabb0155882efd86e33ee53c7b756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #34786 (2 @ results in change to error_reporting() to random value)
--FILE--
<?php
function foo($a,$b,$c) {
echo "foo: ".error_reporting()."\n";
}

function bar() {
echo "bar: ".error_reporting()."\n";
}

error_reporting(E_WARNING);
echo "before: ".error_reporting()."\n";
@foo(1,@bar(),3);
echo "after: ".error_reporting()."\n";
?>
--EXPECT--
before: 2
bar: 0
foo: 0
after: 2