diff options
Diffstat (limited to 'Zend/tests/bug55705.phpt')
-rw-r--r-- | Zend/tests/bug55705.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/tests/bug55705.phpt b/Zend/tests/bug55705.phpt new file mode 100644 index 0000000000..69220bfdeb --- /dev/null +++ b/Zend/tests/bug55705.phpt @@ -0,0 +1,9 @@ +--TEST-- +Bug #55705 (Omitting a callable typehinted argument causes a segfault) +--FILE-- +<?php +function f(callable $c) {} +f(); +?> +--EXPECTF-- +Catchable 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 |