assign_045.phpt 324 B

12345678910111213141516171819
  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($x, $y) {
  12. $a = $b = $a = $y;
  13. var_dump($a + $x);
  14. }
  15. test(null, 1);
  16. ?>
  17. --EXPECT--
  18. int(1)