1--TEST--
2JIT ASSIGN_DIM: 006
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($s) {
11    $s = "123";
12    for($i = 0; $i < 5; $i++) {
13    	$x = $s[-5] = "x";
14    }
15	var_dump($x);
16}
17foo("123");
18?>
19--EXPECTF--
20Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
21
22Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
23
24Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
25
26Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
27
28Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
29NULL
30