xref: /PHP-8.2/Zend/tests/error_reporting10.phpt (revision f8d79582)
1--TEST--
2testing @ and error_reporting - 10
3--FILE--
4<?php
5
6error_reporting(E_ALL);
7
8function make_exception()
9{
10    @$blah;
11    error_reporting(0);
12    throw new Exception();
13}
14
15try {
16    @make_exception();
17} catch (Exception $e) {}
18
19var_dump(error_reporting());
20
21error_reporting(E_ALL&~E_NOTICE);
22
23try {
24    @make_exception();
25} catch (Exception $e) {}
26
27var_dump(error_reporting());
28
29echo "Done\n";
30?>
31--EXPECT--
32int(32767)
33int(32759)
34Done
35