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:59 UTC

Return to Bug #55705 | Download this patch
This patch renders other patches obsolete

Obsolete 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-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 02:02:10 2014 UTC