Edit report at https://bugs.php.net/bug.php?id=55705&edit=1

 ID:                 55705
 Patch added by:     larue...@php.net
 Reported by:        mikko dot petteri dot hirvonen at gmail dot com
 Summary:            Omitting a callable typehinted argument causes a
                     segfault
 Status:             Open
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Mac OS X 10.7 Lion
 PHP Version:        5.4.0beta1
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: bug55705.diff
Revision:   1316162548
URL:        
https://bugs.php.net/patch-display.php?bug=55705&patch=bug55705.diff&revision=1316162548


Previous Comments:
------------------------------------------------------------------------
[2011-09-16 07:17:19] mikko dot petteri dot hirvonen at gmail dot com

Description:
------------
Omitting a callable typehinted argument from a function call causes a 
segmentation fault.

Configured with:
export MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS="-arch x86_64" CXXFLAGS="-arch 
x86_64"
configure --prefix=/usr/local/php-5.4.0beta1


Test script:
---------------
<?php

function f(callable $c) {}
f();


Expected result:
----------------
Catchable fatal error: Argument 1 passed to f() must be of the type callable, 
none given, called in %s on line 4 and defined in %s on line 3

Actual result:
--------------
Segmentation fault: 11


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55705&edit=1

Reply via email to