#49334 [Opn->WFx]: foreach by reference behavior
| From: | derick@php.net | Date: | Mon, 24 Aug 2009 08:55:55 +0000 |
| Subject: | #49334 [Opn->WFx]: foreach by reference behavior | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141414@lists.php.net to get a copy of this message | ||
ID: 49334
Updated by: derick@php.net
Reported By: hueen at yahoo dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: osx
PHP Version: 5.2.10
New Comment:
It can be quite useful, especially when you break out of the foreach
with a break. We can't really go about changing internals for yet
another egde case.
Previous Comments:
------------------------------------------------------------------------
[2009-08-23 10:27:56] hueen at yahoo dot com
Description:
------------
In regards to bug #29992
Does anything speak against having foreach() unset the "as" variable
before iterating? I can hardly imagine anyone would want it to remain a
reference when walking through an array.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49334&edit=1