1--TEST--
2JIT: FETCH_OBJ 003
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12#[ALlowDynamicProperties]
13class C {
14    var $a = 0;
15}
16function foo() {
17    $x = new C;
18    $x->a = 1;
19    unset($x->a);
20    $x->a += 2;
21    var_dump($x);
22}
23function bar() {
24    $x = new C;
25    $x->a = 1;
26    $x->b = 2;
27    unset($x->a);
28    $x->a += 2;
29    var_dump($x);
30}
31foo();
32bar();
33?>
34--EXPECTF--
35Warning: Undefined property: C::$a in %s on line %d
36object(C)#1 (1) {
37  ["a"]=>
38  int(2)
39}
40
41Warning: Undefined property: C::$a in %s on line %d
42object(C)#1 (2) {
43  ["a"]=>
44  int(2)
45  ["b"]=>
46  int(2)
47}
48