xref: /PHP-5.4/Zend/tests/error_reporting04.phpt (revision ee40f557)
1--TEST--
2testing @ and error_reporting - 4
3--FILE--
4<?php
5
6error_reporting(E_ALL);
7
8function foo() {
9	echo $undef;
10	error_reporting(E_ALL|E_STRICT);
11}
12
13
14foo(@$var);
15
16var_dump(error_reporting());
17
18echo "Done\n";
19?>
20--EXPECTF--
21Notice: Undefined variable: undef in %s on line %d
22int(32767)
23Done
24