xref: /PHP-7.1/Zend/tests/error_reporting02.phpt (revision 7af945e2)
1--TEST--
2testing @ and error_reporting - 2
3--FILE--
4<?php
5
6error_reporting(E_ALL);
7
8function foo($arg) {
9}
10
11function bar() {
12	error_reporting(E_ALL|E_STRICT);
13	throw new Exception("test");
14}
15
16try {
17	@foo(@bar());
18} catch (Exception $e) {
19}
20
21var_dump(error_reporting());
22
23echo "Done\n";
24?>
25--EXPECT--
26int(32767)
27Done
28