bug55705.phpt 339 B

12345678910111213
  1. --TEST--
  2. Bug #55705 (Omitting a callable typehinted argument causes a segfault)
  3. --FILE--
  4. <?php
  5. function f(callable $c) {}
  6. f();
  7. ?>
  8. --EXPECTF--
  9. Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in %s on line 3 and exactly 1 expected in %s:2
  10. Stack trace:
  11. #0 %s(%d): f()
  12. #1 {main}
  13. thrown in %s on line %d