xref: /php-src/Zend/tests/oss_fuzz_61712.phpt (revision a3a39644)
1--TEST--
2OSS-Fuzz #61712 (assertion failure with error handler during binary op)
3--FILE--
4<?php
5#[AllowDynamicProperties]
6class C {
7    function error($_, $msg) {
8        echo $msg, "\n";
9        unset($this->a);
10    }
11}
12
13$c = new C;
14set_error_handler([$c, 'error']);
15$c->a %= 10;
16var_dump($c->a);
17?>
18--EXPECT--
19Undefined property: C::$a
20int(0)
21