inc_019.phpt 396 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. JIT INC: 019
  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. ;opcache.jit_debug=257
  10. --EXTENSIONS--
  11. opcache
  12. --FILE--
  13. <?php
  14. function bar($b) {
  15. if ($b) {
  16. $a = 1;
  17. } else {
  18. $a = 2;
  19. }
  20. isset($a);
  21. var_dump($a++);
  22. return $a;
  23. }
  24. var_dump(bar(0));
  25. ?>
  26. --EXPECT--
  27. int(2)
  28. int(3)