xref: /php-src/ext/opcache/tests/jit/gh17151_3.phpt (revision cbe9d67e)
1--TEST--
2GH-17151: Method calls may modify RC of ZEND_INIT_METHOD_CALL op1
3--FILE--
4<?php
5
6class C {
7    public static $prop;
8
9    public function storeThis() {
10        self::$prop = $this;
11    }
12}
13
14function test() {
15    $c = new C();
16    $c->storeThis();
17    $c = null;
18}
19
20test();
21
22?>
23===DONE===
24--EXPECT--
25===DONE===
26