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