xref: /PHP-8.0/Zend/tests/bug27731.phpt (revision f8d79582)
1--TEST--
2Bug #27731 (error_reporing() 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