php-src/Zend/tests/bug55705.phpt

10 lines
262 B
PHP

--TEST--
Bug #55705 (Omitting a callable typehinted argument causes a segfault)
--FILE--
<?php
function f(callable $c) {}
f();
?>
--EXPECTF--
Fatal error: Argument 1 passed to f() must be callable, none given, called in %s on line 3 and defined in %s on line %d