xref: /PHP-7.0/Zend/tests/error_reporting07.phpt (revision 9ffc8b73)
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($arg) {
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--EXPECTF--
29int(32767)
30Done
31