php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55705
Patch bug55705.phpt revision 2011-09-16 08:59 UTC by laruence@php.net
revision 2011-09-16 08:45 UTC by laruence@php.net
Patch bug55705.diff revision 2011-09-16 08:42 UTC by laruence@php.net

Patch bug55705.phpt for Reproducible crash Bug #55705

Patch version 2011-09-16 08:45 UTC

Return to Bug #55705 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: laruence@php.net

--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 of the type callback, none given, called in %s on line %d and defined in %sbug55705.php on line %d 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC