We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80d30d commit 71d6501Copy full SHA for 71d6501
ext/opcache/tests/jit/assign_dim_006.phpt
@@ -0,0 +1,29 @@
1
+--TEST--
2
+JIT ASSIGN_DIM: 006
3
+--INI--
4
+opcache.enable=1
5
+opcache.enable_cli=1
6
+opcache.file_update_protection=0
7
+opcache.jit_buffer_size=1M
8
+--FILE--
9
+<?php
10
+function foo($s) {
11
+ $s = "123";
12
+ for($i = 0; $i < 5; $i++) {
13
+ $x = $s[-5] = "x";
14
+ }
15
+ var_dump($x);
16
+}
17
+foo("123");
18
+?>
19
+--EXPECTF--
20
+Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
21
+
22
23
24
25
26
27
28
29
+NULL
0 commit comments