Re: PHP 4.0 Bug #5052 Updated: Bug in ref-count(?) working with nested foreach() on copied var

From: Date: Thu, 10 Aug 2000 22:18:33 +0000
Subject: Re: PHP 4.0 Bug #5052 Updated: Bug in ref-count(?) working with nested foreach() on copied var
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28517@lists.php.net to get a copy of this message
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@kiffen.de 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@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#28517) next »