assign_043.phpt 408 B

12345678910111213141516171819202122
  1. --TEST--
  2. JIT ASSIGN: Undef var notice promoted to exception
  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. set_error_handler(function($_, $m) {
  12. throw new Exception($m);
  13. });
  14. try {
  15. $a = $b;
  16. NOT_REACHED;
  17. } catch (Exception $e) {
  18. echo $e->getMessage(), "\n";
  19. }
  20. ?>
  21. --EXPECT--
  22. Undefined variable $b