[php-src] PR #17316: Fix GH-11591: AppendIterator fails to iterate with an empty generator
| From: | takaram | Date: | Wed, 01 Jan 2025 15:00:45 +0000 |
| Subject: | [php-src] PR #17316: Fix GH-11591: AppendIterator fails to iterate with an empty generator | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30186@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17316
Author: takaram
Appending an empty generator is virtually a no-op, except that the generator gets consumed and is no
longer available.
With this PR,
AppendIterator::apend terminates early if its argument is an empty
generator.