inc_011.phpt 339 B

1234567891011121314151617181920212223
  1. --TEST--
  2. JIT INC: 011
  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 foo() {
  15. $x = 1.0;
  16. $x += 0;
  17. ++$x; // mem -> reg
  18. return $x;
  19. }
  20. var_dump(foo());
  21. ?>
  22. --EXPECT--
  23. float(2)