php-src/Zend/tests/bug81652.phpt
Nikita Popov be271f277e Fix bug #81652
We need to check not only for defs but also for uses of the
variable.
2021-11-24 15:18:31 +01:00

23 lines
326 B
PHP

--TEST--
Bug #81652: The value of error_reporting() gets overridden
--FILE--
<?php
class Foo {
public $a;
public function bar() {
$this->a = true ? @random_int(0, 100) : false;
}
}
var_dump(error_reporting());
$c = new Foo();
$c->bar();
var_dump(error_reporting());
?>
--EXPECT--
int(32767)
int(32767)