assign_030.phpt 333 B

123456789101112131415161718192021222324
  1. --TEST--
  2. JIT ASSIGN: 030
  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. $i = 1;
  16. $x = 2;
  17. var_dump($i=$x);
  18. return $i;
  19. }
  20. var_dump(foo());
  21. ?>
  22. --EXPECT--
  23. int(2)
  24. int(2)