xref: /PHP-8.4/ext/opcache/tests/jit/assign_056.phpt (revision c16ad918)
1--TEST--
2JIT ASSIGN: ASSING+SEND and typed reference
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10class Test {
11    static ?Test $test;
12}
13
14$a = new Test;
15Test::$test = &$a;
16var_dump($a = new Test);
17?>
18--EXPECT--
19object(Test)#2 (0) {
20}
21