[php-src] Issue #7952: `CallbackFilterIterator` is not rewound by default/initialized
| From: | cmb69 | Date: | Mon, 17 Jan 2022 11:29:30 +0000 |
| Subject: | [php-src] Issue #7952: `CallbackFilterIterator` is not rewound by default/initialized | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239062@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7952
Comment Author: cmb69
This [issue is known for 14 years](https://bugs.php.net/bug.php?id=44063) (at least); I doubt that
the behavior will change. I agree with @damianwadley that we should clearly document that iterators
are supposed to be rewound before usage (although that is already implied by the [foreach
example](https://www.php.net/manual/en/class.iterator.php)).