recv_004.phpt 344 B

12345678910111213141516171819202122
  1. --TEST--
  2. JIT RECV: default arguments with type checks
  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. ;opcache.jit_debug=257
  10. --EXTENSIONS--
  11. opcache
  12. --FILE--
  13. <?php
  14. function test(int $a = 1, int $b = 2)
  15. {
  16. var_dump($a, $b);
  17. }
  18. test(3);
  19. ?>
  20. --EXPECT--
  21. int(3)
  22. int(2)