xref: /PHP-8.4/Zend/tests/bug27731.phpt (revision ea297654)
1--TEST--
2Bug #27731 (error_reporting() call inside @ block does not work correctly)
3--FILE--
4<?php
5    error_reporting(E_ALL ^ E_NOTICE);
6    @error_reporting(E_WARNING);
7    var_dump(error_reporting());
8?>
9--EXPECT--
10int(2)
11