PHP 4.0 Bug #2376: Minor inconsistency between PHP3 and PHP4 on while each loops
| From: | mbushey at virtualintensity dot com | Date: | Fri, 24 Sep 1999 17:07:03 +0000 |
| Subject: | PHP 4.0 Bug #2376: Minor inconsistency between PHP3 and PHP4 on while each loops | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11275@lists.php.net to get a copy of this message | ||
From: mbushey@virtualintensity.com
Operating system: Linux 2.2.5
PHP version: 4.0 Beta 2
PHP Bug Type: Other
Bug description: Minor inconsistency between PHP3 and PHP4 on while each loops
Under PHP3 I could do a while each loop, and to reset the varable on the each loop I could set $var
= $var; This no longer works on PHP4, but $tmp = $var; $var = $tmp; does however. Perhaps there is
a better way to reset the pointer and I am doing it wrong it the 1st place...