Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Dec 2, 2021
1 parent b4680b0 commit 42a162e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ext/opcache/tests/jit/assign_dim_op_006.phpt
@@ -0,0 +1,19 @@
--TEST--
JIT ASSIGN_DIM_OP 006: Cloberring array be user error handler
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
$my_var = null;
set_error_handler(function() use(&$my_var) {
$my_var = 0;
});

$my_var[0000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000] .= "xyz";
var_dump($my_var);
?>
--EXPECT--
int(0)

0 comments on commit 42a162e

Please sign in to comment.