mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
14 lines
338 B
PHP
14 lines
338 B
PHP
--TEST--
|
|
Bug #55705 (Omitting a callable typehinted argument causes a segfault)
|
|
--FILE--
|
|
<?php
|
|
function f(callable $c) {}
|
|
f();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught TypeError: Argument 1 passed to f() must be callable, none given, called in %s on line 3 and defined in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): f()
|
|
#1 {main}
|
|
thrown in %s on line %d
|