Bug #70397 [Opn->Asn]: Segmentation fault when using Closure::call and yield
| From: | bwoebi@php.net | Date: | Tue, 01 Sep 2015 15:59:50 +0000 |
| Subject: | Bug #70397 [Opn->Asn]: Segmentation fault when using Closure::call and yield | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195680@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: Open
+Status: Assigned
Type: Bug
Package: Class/Object related
Operating System: Mac OSX
PHP Version: 7.0.0RC1
-Assigned To:
+Assigned To: bwoebi
Block user comment: N
Private report: N
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