xref: /PHP-8.3/ext/opcache/tests/jit/assign_049.phpt (revision d8b0337c)
1--TEST--
2JIT ASSIGN: register allocation on x86
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11function &a($i) {
12    $a = "str". $i;
13    return $a;
14}
15
16class A {
17    public $a;
18    public function test() {
19        $this->a = a(1);
20    }
21}
22
23$a = new A;
24$a->test();
25$a->test();
26?>
27DONE
28--EXPECT--
29DONE
30