xref: /PHP-8.0/Zend/tests/error_reporting06.phpt (revision f8d79582)
1--TEST--
2testing @ and error_reporting - 6
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    @foo1(@foo2(@foo3()));
21} catch (Exception $e) {
22}
23
24var_dump(error_reporting());
25
26echo "Done\n";
27?>
28--EXPECT--
29int(32767)
30Done
31