xref: /PHP-8.4/Zend/tests/bug81652.phpt (revision d313ad60)
1--TEST--
2Bug #81652: The value of error_reporting() gets overridden
3--FILE--
4<?php
5
6class Foo {
7    public $a;
8
9    public function bar() {
10        $this->a = true ? @random_int(0, 100) : false;
11    }
12}
13
14var_dump(error_reporting());
15$c = new Foo();
16$c->bar();
17var_dump(error_reporting());
18
19?>
20--EXPECT--
21int(30719)
22int(30719)
23