mul_009.phpt 433 B

1234567891011121314151617181920
  1. --TEST--
  2. JIT MUL: 009 memory leak
  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. $x[""][] = 1;
  12. $x[~"$y"] *= 1;
  13. ?>
  14. --EXPECTF--
  15. Warning: Undefined variable $y in %smul_009.php on line 3
  16. Fatal error: Uncaught TypeError: Unsupported operand types: array * int in %smul_009.php:3
  17. Stack trace:
  18. #0 {main}
  19. thrown in %smul_009.php on line 3