assign_001.phpt 360 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. JIT ASSIGN: 001
  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.jit_debug=257
  9. --EXTENSIONS--
  10. opcache
  11. --FILE--
  12. <?php
  13. function foo() {
  14. $a = array();
  15. $b = $a;
  16. $c = $a;
  17. $a = 1;
  18. $x = $a;
  19. var_dump($x, $b, $c);
  20. }
  21. foo();
  22. ?>
  23. --EXPECT--
  24. int(1)
  25. array(0) {
  26. }
  27. array(0) {
  28. }