Skip to content

Commit 2605911

Browse files
committed
Tracing JIT: Fixed reference counting when escape because of IS_UNDEF element (test)
1 parent d7ac39b commit 2605911

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--TEST--
2+
JIT FETCH_DIM_R: 009
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+
$ary = [[0]];
11+
for ($i = 2; $i < 5; $i++) {
12+
var_dump($ary[0][$i>>1]);
13+
$ary[0][$i] = 1;
14+
}
15+
?>
16+
--EXPECTF--
17+
Warning: Undefined array key 1 in %sfetch_dim_r_009.php on line 4
18+
NULL
19+
20+
Warning: Undefined array key 1 in %sfetch_dim_r_009.php on line 4
21+
NULL
22+
int(1)

0 commit comments

Comments
 (0)