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