add_014.phpt 516 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. JIT ADD: 014 incorrect guard elimination
  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 test() {
  11. $s = null;
  12. $i = $a + $a = $j = 2;
  13. for ($a = 0; $i < 20; $a = !$a + $s .= 0xfff0001/34028236692903846346336*6) {
  14. $a = !$a + $a &= 74444444 - 444 >> 4 - $j++;
  15. if ($j > 14) break;
  16. }
  17. }
  18. try {
  19. @test();
  20. } catch (Throwable $e) {
  21. echo $e->getMessage() . "\n";
  22. }
  23. ?>
  24. --EXPECT--
  25. Bit shift by negative number