# [VOTE] [RFC] Make the iterator_*() family accept all iterables

- Thread: https://externals.io/message/118199
- Original archive: https://news-web.php.net/php.internals/118199
- Started by duesterhus@woltlab.com on 2022-07-05T14:30:06+00:00
- Messages: 2
- RFC: Make the iterator_*() family accept all iterables (Implemented (PHP 8.2)) — https://externals.io/rfc/iterator_xyz_accept_array.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #118199 — duesterhus@woltlab.com — 2022-07-05T14:30:06+00:00

URL: https://externals.io/message/118199#118199

Hi

I just opened the vote on:

"Make the iterator_*() family accept all iterables" [1]

The RFC contains two votes, each of which requires a 2/3 majority. 
Voting will run 2 weeks until:

2022-07-19 at 14:45 UTC

--------

Please find the below resources for your reference:

RFC: https://wiki.php.net/rfc/iterator_xyz_accept_array
PoC implementation: https://github.com/php/php-src/pull/8819

Pre-RFC Thread: https://externals.io/message/117979
Discussion Thread: https://externals.io/message/118036

--------

[1] https://wiki.php.net/rfc/iterator_xyz_accept_array

Best regards
Tim Düsterhus
Developer WoltLab GmbH

-- 

WoltLab GmbH
Nedlitzer Str. 27B
14469 Potsdam

Tel.: +49 331 96784338

duesterhus@woltlab.com
www.woltlab.com

Managing director:
Marcel Werk

AG Potsdam HRB 26795 P

---

## #118279 — duesterhus@woltlab.com — 2022-07-19T14:50:57+00:00

URL: https://externals.io/message/118199#118279 · In reply to: #118199

Hi


> "Make the iterator_*() family accept all iterables" [1]
> 
> […]
> 
> [1] https://wiki.php.net/rfc/iterator_xyz_accept_array
> 

Both votes in the RFC were accepted 17:2 (89%), albeit with some voters 
only participating in one of the votes.

As the implementation was already reviewed in anticipation of the RFC 
passing, I've already merged it:

https://github.com/php/php-src/commit/7ae7df5b4601f3f0ce45a27324fb9c6ebcbfc9ed

Thanks!

Best regards
Tim Düsterhus
Developer WoltLab GmbH

-- 

WoltLab GmbH
Nedlitzer Str. 27B
14469 Potsdam

Tel.: +49 331 96784338

duesterhus@woltlab.com
www.woltlab.com

Managing director:
Marcel Werk

AG Potsdam HRB 26795 P
