# RFC - foreach

- Thread: https://externals.io/message/122243
- Original archive: https://news-web.php.net/php.internals/122243
- Started by glash.gnome@gmail.com on 2024-01-24T16:07:05+00:00
- Messages: 4
- RFC: Fix "foreach" behavior (Implemented (PHP 7.0)) — https://externals.io/rfc/php7_foreach.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

---

## #122243 — glash.gnome@gmail.com — 2024-01-24T16:07:05+00:00

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

Hello internals,
My best wishes for 2024

I just read this RFC:
https://wiki.php.net/rfc/php7_foreach#foreach_by_reference_over_arrays
Does anyone remember why this RFC remained?
Since 2015 ... 97% Yes


Best regards,
SVGAnimate

---

## #122244 — Marco Pivetta — 2024-01-24T16:09:05+00:00

URL: https://externals.io/message/122243#122244 · In reply to: #122243

Hey Mönôme,



> Hello internals,
> My best wishes for 2024
>
> I just read this RFC:
> https://wiki.php.net/rfc/php7_foreach#foreach_by_reference_over_arrays
> Does anyone remember why this RFC remained?
> Since 2015 ... 97% Yes
>

Seen this?

https://github.com/php/php-src/pull/1034#issuecomment-74066967

Marco Pivetta

https://mastodon.social/@ocramius

https://ocramius.github.io/

---

## #122248 — glash.gnome@gmail.com — 2024-01-24T17:13:49+00:00

URL: https://externals.io/message/122243#122248 · In reply to: #122244

No, I hadn't seen it. Sorry, it was marked on it : "Status: Implemented"

It's because of this kind of code confused me: https://3v4l.org/s8h2l

Everything is back to normal.

Thanks

Le mer. 24 janv. 2024 à 17:09, Marco Pivetta <ocramius@gmail.com> a écrit :

> Hey Mönôme,
>
> 
>
> > […]
>
> Seen this?
>
> https://github.com/php/php-src/pull/1034#issuecomment-74066967
>
> Marco Pivetta
>
> https://mastodon.social/@ocramius
>
> https://ocramius.github.io/

---

## #122249 — glash.gnome@gmail.com — 2024-01-24T17:16:15+00:00

URL: https://externals.io/message/122243#122249 · In reply to: #122248

Le mer. 24 janv. 2024 à 18:13, Mönôme Epson <glash.gnome@gmail.com> a
écrit :

> No, I hadn't seen it. Sorry, it was marked on it : "Status: Implemented"
>
> It's because of this kind of code confused me: https://3v4l.org/s8h2l
>
> Everything is back to normal.
>
> Thanks
>
> Le mer. 24 janv. 2024 à 17:09, Marco Pivetta <ocramius@gmail.com> a
> écrit :
>
> > […]
>
Gmail is not practical for post. Which client do you use?
