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

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.

Andi

At 10:18 AM 8/11/00 +0000, Bug Database wrote:
>ID: 5052
>Updated by: waldschrott
>Reported By: waldschrott <email protected>
>Status: Closed
>Bug Type: Scripting Engine problem
>Assigned To:
>Comments:
>
>IŽll give it a try, please tell me... did it has anything to
>
>do with ref-count at all?
>
>Why did $b=&$b work then it actually should do nothing but
>
>overwriting itself with exactly the same information....
>
>Full Bug description available at: http://bugs.php.net/?id=5052
>
>
>--
>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>

---
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>