xref: /php-src/ext/opcache/tests/jit/assign_052.phpt (revision c16ad918)
1--TEST--
2JIT ASSIGN: incorrect reference counting
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10function foo(){
11    for($cnt = 0; $cnt < 6; $cnt++) {
12        $t[$i = $s][] = [] > $n[$i = $j] = $s = $a . $a = $f;
13    }
14}
15@foo();
16?>
17DONE
18--EXPECT--
19DONE
20