xref: /PHP-8.1/ext/opcache/tests/jit/rope_002.phpt (revision 33704be5)
1--TEST--
2JIT ROPE: 002 type guards are only checked for strings
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10function foo() {
11	$a = 0;
12    for ($cnt = 0; $cnt < 6; $cnt++) {
13        $array[] = &$y;
14        $S["$array[$a] $y"] = $a += $y;
15     }
16}
17foo();
18?>
19DONE
20--EXPECT--
21DONE
22