Bug #69599 [Asn->Csd]: Strange generator+exception+variadic crash
Edit report at https://bugs.php.net/bug.php?id=69599&edit=1
ID: 69599
Updated by: nikic@php.net
Reported by: imbolk at gmail dot com
Summary: Strange generator+exception+variadic crash
-Status: Assigned
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Mac OS
PHP Version: 5.6.8
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e1cb22a23e881d13ddf80a90f1b0bf2d37913f75
Log: Fix bug #69599
Previous Comments:
------------------------------------------------------------------------
[2015-05-08 04:33:32] imbolk at gmail dot com
Description:
------------
PHP crashes if I use variardic, Exception and generator together.
Test script:
---------------
// Minimal example to reproduce
function crash()
{
sin(...[0]);
throw new \Exception();
yield;
}
iterator_to_array(crash());
Expected result:
----------------
PHP Fatal error: Uncaught exception 'Exception'⦠blah-blah
Actual result:
--------------
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69599&edit=1
Thread (2 messages)