xref: /PHP-8.0/Zend/tests/error_reporting09.phpt (revision 36935e42)
1--TEST--
2testing @ and error_reporting - 9
3--FILE--
4<?php
5
6error_reporting(E_ALL & ~E_DEPRECATED);
7
8function bar() {
9    echo @$blah;
10    echo $undef2;
11}
12
13function foo() {
14    echo @$undef;
15    error_reporting(E_ALL);
16    echo $blah;
17    return bar();
18}
19
20@foo();
21
22var_dump(error_reporting());
23
24echo "Done\n";
25?>
26--EXPECTF--
27Warning: Undefined variable $blah in %s on line %d
28
29Warning: Undefined variable $undef2 in %s on line %d
30int(32767)
31Done
32