recv_002.phpt 489 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. JIT RECV: too few arguments
  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($a)
  15. {
  16. }
  17. test();
  18. ?>
  19. --EXPECTF--
  20. Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in %srecv_002.php on line 7 and exactly 1 expected in %s:3
  21. Stack trace:
  22. #0 %s(7): test()
  23. #1 {main}
  24. thrown in %s on line 3