Bug #69458 [Asn->Csd]: Delegating to current generator causes infinite loop
| From: | bwoebi@php.net | Date: | Wed, 15 Apr 2015 19:56:21 +0000 |
| Subject: | Bug #69458 [Asn->Csd]: Delegating to current generator causes infinite loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192115@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69458&edit=1
ID: 69458
Updated by: bwoebi@php.net
Reported by: nikic@php.net
Summary: Delegating to current generator causes infinite loop
-Status: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: master-Git-2015-04-15 (Git)
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=3dcad2eea2f24164f2a313792bbfda5e093b4807
Log: Fix bug #69458
Previous Comments:
------------------------------------------------------------------------
[2015-04-15 08:45:27] nikic@php.net
Description:
------------
function gen() {
yield from yield;
}
$g = gen();
$g->send($g);
This will cause an infinite loop. This should be throwing the "already running" exception
instead, I think.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69458&edit=1