Re: PHP 4.0 Bug #3074 Updated: allow: foreach ($array as $key => &$val) in zend (byref)
| From: | Stig Venaas | Date: | Mon, 22 Jan 2001 21:28:25 +0000 |
| Subject: | Re: PHP 4.0 Bug #3074 Updated: allow: foreach ($array as $key => &$val) in zend (byref) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44742@lists.php.net to get a copy of this message | ||
On Mon, Jul 31, 2000 at 08:23:33PM -0000, Bug Database wrote:
> ID: 3074
> Updated by: waldschrott
> Reported By: thies@digicol.de
> Status: Analyzed
> Bug Type: Feature/Change Request
> Assigned To:
> Comments:
>
> I think it happend. You did forget! ;)
> Results in a parse error.
I think I might want to have a look at this. The idea is that the
working copy of the array has references to the elements of the
original array rather than copies, right? Would a fix be welcome?
Personally I would prefer foreach() not to copy the array at all, but
rather save and restore the original pointer, but I suppose the behavior
can't change.
Bug ID 8373 is the same I think.
Stig