It would be arbitrarily breaking an explicit reference.  I know I have
code lying around that relies on multiple loops cleaning up a big
complicated multi-level array.  I do ugly things with references into
that array and it would completely break if PHP magically deleted my
references whether they are in the iterator or elsewhere.

This has been this way for 6+ years and it is well documented on the
http://php.net/foreach page.  (see the big red warning box)

-Rasmus

Fair enough. Thanks for examining it again with me.

Best,
Richard



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to