Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y
| From: | Zeev Suraski | Date: | Thu, 24 Jul 2003 16:06:51 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3590@lists.php.net to get a copy of this message | ||
At 16:03 24/07/2003, Sebastian Bergmann wrote:
Zeev Suraski wrote: Log: Support references in foreach() Syntax:A copy, yes. Using 'clone' here is a bit misleading though, it didn't call __clone or anything. For objects under PHP 5, this doesn't make too much of a difference. For everything else, it does. Zeevforeach ($arr as &$val) foreach ($arr as $key => &$val)Does this mean that before this patchforeach ($arr as $val) {}did not put a reference in $val but a copy (clone)?