1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00
Files
archived-php-src/Zend/tests/bug55705.phpt
T

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