Re: [PHP-DEV] PHP 4.0 Bug #5052 Updated: Bug in ref-count(?) working with nested foreach() on copied var From: Andi Gutmans (andi <email protected>)
Date: 08/10/00

At 12:24 AM 8/11/00 +0200, waldschrott wrote:
>>Yes it had to do with refcount.
>>$a and $b where pointing at each other but foreach() didn't care and
>>didn't split them before running. This meant that moving the internal
>>pointer forward in one array effected the other.
>
>ahhh, am I right then that $b=&$b did split them manually?

Haven't checked but it makes sense.

Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>