assign_046.phpt 779 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. JIT ASSIGN: incorrect assumption about in-memeory zval type
  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. --FILE--
  10. <?php
  11. function test() {
  12. $a = null;
  13. for ($i = 0; $i < 6; $i++) {
  14. var_dump($a);
  15. $a = $a + $a = +$a = $b;
  16. }
  17. }
  18. test();
  19. ?>
  20. --EXPECTF--
  21. NULL
  22. Warning: Undefined variable $b in %sassign_046.php on line 6
  23. int(0)
  24. Warning: Undefined variable $b in %sassign_046.php on line 6
  25. int(0)
  26. Warning: Undefined variable $b in %sassign_046.php on line 6
  27. int(0)
  28. Warning: Undefined variable $b in %sassign_046.php on line 6
  29. int(0)
  30. Warning: Undefined variable $b in %sassign_046.php on line 6
  31. int(0)
  32. Warning: Undefined variable $b in %sassign_046.php on line 6