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