Bug #72661 [Opn->Csd]: ReflectionType::__toString crashes with iterable
| From: | laruence@php.net | Date: | Sun, 24 Jul 2016 03:01:43 +0000 |
| Subject: | Bug #72661 [Opn->Csd]: ReflectionType::__toString crashes with iterable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202547@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72661&edit=1
ID: 72661
Updated by: laruence@php.net
Reported by: thekid@php.net
Summary: ReflectionType::__toString crashes with iterable
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 7.1.0beta1
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a3a797dbd56a5b9f71eb2b5c82a5722314642640
Log: Fixed bug #72661 (ReflectionType::__toString crashes with iterable)
Previous Comments:
------------------------------------------------------------------------
[2016-07-23 22:46:26] thekid@php.net
Description:
------------
Casting ReflectionType instances to string with the new iterable type causes PHP to crash
Test script:
---------------
$ ~/bin/php-7.1.0beta1-nts-Wind32-VC14-x64/php -r 'function test(iterable $arg) { }
var_dump((string)(new ReflectionParameter("test", 0))->getType());'
Expected result:
----------------
"iterable"
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72661&edit=1