xref: /PHP-8.3/ext/opcache/tests/jit/mod_004.phpt (revision 48a65fef)
1--TEST--
2JIT MOD: 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11$a = [];
12$b = "";
13$a["x{$b}y"] %= 0;
14?>
15--EXPECTF--
16Warning: Undefined array key "xy" in %smod_004.php on line 4
17
18Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %smod_004.php:4
19Stack trace:
20#0 {main}
21  thrown in %smod_004.php on line 4