Bug #78434 [Com]: Generator yields no items after valid() call
| From: | grzegorz at kielak dot me | Date: | Wed, 20 May 2020 19:04:33 +0000 |
| Subject: | Bug #78434 [Com]: Generator yields no items after valid() call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227107@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78434&edit=1
ID: 78434
Comment by: grzegorz at kielak dot me
Reported by: enumag at gmail dot com
Summary: Generator yields no items after valid() call
Status: Closed
Type: Bug
Package: *General Issues
Operating System: irrelevant
PHP Version: 7.3.11
Block user comment: N
Private report: N
New Comment:
have we just created a new bug?
https://3v4l.org/S4PAK
Previous Comments:
------------------------------------------------------------------------
[2020-05-20 02:42:47] requinix@php.net
Related To: Bug #79614
------------------------------------------------------------------------
[2020-05-15 08:57:57] nikic@php.net
Related To: Bug #79600
------------------------------------------------------------------------
[2020-04-09 08:36:23] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=823a956855c1f38ed8ee888bf248917e28d40314
Log: Fixed bug #78434
------------------------------------------------------------------------
[2020-04-03 10:10:11] nikic@php.net
Candidate patch at https://github.com/php/php-src/pull/5344. Very
much not sure this is right.
------------------------------------------------------------------------
[2020-04-02 15:03:41] nikic@php.net
It looks like the difference in behavior is because the first yield from runs with DO_INIT flag set,
which prevents the initial advance.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78434
--
Edit this bug report at https://bugs.php.net/bug.php?id=78434&edit=1