mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
23 lines
382 B
Plaintext
23 lines
382 B
Plaintext
|
--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(1);
|
||
|
echo "before: ".error_reporting()."\n";
|
||
|
@foo(1,@bar(),3);
|
||
|
echo "after: ".error_reporting()."\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
before: 1
|
||
|
bar: 0
|
||
|
foo: 0
|
||
|
after: 1
|