xref: /PHP-8.0/ext/opcache/tests/jit/assign_052.phpt (revision 2b7431cf)
1--TEST--
2JIT ASSIGN: incorrect reference counting
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 foo(){
12    for($cnt = 0; $cnt < 6; $cnt++) {
13        $t[$i = $s][] = [] > $n[$i = $j] = $s = $a . $a = $f;
14    }
15}
16@foo();
17?>
18DONE
19--EXPECT--
20DONE
21