mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
eee1617f38
With the fix in https://github.com/php/php-src/pull/12114, the behaviour would change for non-dynamic properties. Align the behaviour for dynamic properties to be the same. Closes GH-12117.
21 lines
346 B
PHP
21 lines
346 B
PHP
--TEST--
|
|
OSS-Fuzz #61712 (assertion failure with error handler during binary op)
|
|
--FILE--
|
|
<?php
|
|
#[AllowDynamicProperties]
|
|
class C {
|
|
function error($_, $msg) {
|
|
echo $msg, "\n";
|
|
$this->a = 12345;
|
|
}
|
|
}
|
|
|
|
$c = new C;
|
|
set_error_handler([$c, 'error']);
|
|
$c->a %= 10;
|
|
var_dump($c->a);
|
|
?>
|
|
--EXPECT--
|
|
Undefined property: C::$a
|
|
int(5)
|