php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69458 Delegating to current generator causes infinite loop
Submitted: 2015-04-15 08:45 UTC Modified: 2015-04-15 08:45 UTC
From: nikic@php.net Assigned: bwoebi (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: master-Git-2015-04-15 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nikic@php.net
New email:
PHP Version: OS:

 

 [2015-04-15 08:45 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-15 08:45 UTC] nikic@php.net
-Assigned To: +Assigned To: bwoebi
 [2015-04-15 19:56 UTC] bwoebi@php.net
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
 [2015-04-15 19:56 UTC] bwoebi@php.net
-Status: Assigned +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
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
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC