Bug #70397 [Asn->Csd]: Segmentation fault when using Closure::call and yield
| From: | bwoebi@php.net | Date: | Tue, 01 Sep 2015 16:04:32 +0000 |
| Subject: | Bug #70397 [Asn->Csd]: Segmentation fault when using Closure::call and yield | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195681@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70397&edit=1
ID: 70397
Updated by: bwoebi@php.net
Reported by: masakielastic at gmail dot com
Summary: Segmentation fault when using Closure::call and
yield
-Status: Assigned
+Status: Closed
Type: Bug
Package: Class/Object related
Operating System: Mac OSX
PHP Version: 7.0.0RC1
Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of bobwei9@hotmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=50d6fd6a032aad352d0daa52540698131813a4ec
Log: Fixed bug #70397 (Segmentation fault when using Closure::call and yield)
Previous Comments:
------------------------------------------------------------------------
[2015-09-01 08:47:55] masakielastic at gmail dot com
Description:
------------
Segmentation fault arises when using Closure::call and yield.
Test script:
---------------
$f = function () {
$this->value = 'foo';
yield $this->value;
};
$a = new class {};
var_dump(
'foo' === $f->call($a)->current()
);
Expected result:
----------------
bool(true)
Actual result:
--------------
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70397&edit=1