1--TEST--
2JIT ASSIGN_DIM: 006
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function foo($s) {
10    $s = "123";
11    for($i = 0; $i < 5; $i++) {
12    	$x = $s[-5] = "x";
13    }
14	var_dump($x);
15}
16foo("123");
17?>
18--EXPECTF--
19Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
20
21Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
22
23Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
24
25Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
26
27Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
28NULL
29