rope_002.phpt 354 B

123456789101112131415161718192021
  1. --TEST--
  2. JIT ROPE: 002 type guards are only checked for strings
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. --FILE--
  9. <?php
  10. function foo() {
  11. $a = 0;
  12. for ($cnt = 0; $cnt < 6; $cnt++) {
  13. $array[] = &$y;
  14. $S["$array[$a] $y"] = $a += $y;
  15. }
  16. }
  17. foo();
  18. ?>
  19. DONE
  20. --EXPECT--
  21. DONE