Bug #55705 [PATCH]: Omitting a callable typehinted argument causes a segfault
| From: | laruence@php.net | Date: | Fri, 16 Sep 2011 08:45:43 +0000 |
| Subject: | Bug #55705 [PATCH]: Omitting a callable typehinted argument causes a segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163589@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55705&edit=1
ID: 55705
Patch added by: laruence@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.phpt
Revision: 1316162743
URL: https://bugs.php.net/patch-display.php?bug=55705&patch=bug55705.phpt&revision=1316162743
Previous Comments:
------------------------------------------------------------------------
[2011-09-16 08:42:28] laruence@php.net
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
------------------------------------------------------------------------
[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