Edit report at https://bugs.php.net/bug.php?id=45684&edit=1
ID: 45684
Updated by: nikic@php.net
Reported by: puts dot email at gmail dot com
Summary: A request for foreach to be key-type agnostic.
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: N/A
PHP Version: 5.3.0alpha1
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
The RFC has been accepted, commited here: https://github.com/php/php-src/commit/fcc6611de9054327441786e52444b5f8eecdd525
(for PHP 5.5)
Previous Comments:
------------------------------------------------------------------------
[2013-02-24 23:17:39] stoffle at gmail dot com
That's great, thanks for the update. I can now also remove my botched attempt from
GitHub :)
------------------------------------------------------------------------
[2013-02-24 11:00:02] nikic@php.net
@stoffle: I have an RFC and patch here: https://wiki.php.net/rfc/foreach-non-scalar-keys.
I'll try to get it into 5.5.
------------------------------------------------------------------------
[2013-02-24 03:04:21] stoffle at gmail dot com
Is there any chance this might make it into 5.5?
------------------------------------------------------------------------
[2012-06-05 22:24:11] nikic@php.net
Assigning to Etienne as he's working on this.
------------------------------------------------------------------------
[2011-04-05 19:26:00] info at strictcoding dot co dot uk
Agreed, it would be a very nice addition, this is currently a blocking issue for
doing some cool stuff.
------------------------------------------------------------------------
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=45684--
Edit this bug report at https://bugs.php.net/bug.php?id=45684&edit=1