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