xref: /PHP-8.4/ext/opcache/tests/jit/gh17151_1.phpt (revision cbe9d67e)
1--TEST--
2GH-17151: ZEND_FETCH_OBJ_R may modify RC of op1
3--FILE--
4<?php
5
6class C {
7    public function __get($name) {
8        return $this;
9    }
10}
11
12function test() {
13    $x = (new C)->bar;
14    var_dump($x);
15}
16
17test();
18
19?>
20--EXPECTF--
21object(C)#%d (0) {
22}
23