Skip to content

Commit 42a162e

Browse files
committed
Add test
1 parent b4680b0 commit 42a162e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
JIT ASSIGN_DIM_OP 006: Cloberring array be user error handler
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+
$my_var = null;
11+
set_error_handler(function() use(&$my_var) {
12+
$my_var = 0;
13+
});
14+
15+
$my_var[0000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000] .= "xyz";
16+
var_dump($my_var);
17+
?>
18+
--EXPECT--
19+
int(0)

0 commit comments

Comments
 (0)