mod_004.phpt 417 B

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