Re: Bug #1972: while kills while loop
| From: | Steven Lawrance | Date: | Thu, 05 Aug 1999 17:20:15 +0000 |
| Subject: | Re: Bug #1972: while kills while loop | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-9572@lists.php.net to get a copy of this message | ||
> From: commy_@hotmail.com
> Operating system: Windows NT
> PHP version: 3.0.11
> PHP Bug Type: Misbehaving function
> Bug description: while kills while loop
>
> Can't you have a While loop inside another While loop?
> It seems that the second loop stops the first one!?
Are you using the same loop control variable in both loops (assuming you're
taking that approach)?
As an example, are you doing something like this:
$i = 0;
while ($i < 10) {
$i = 0;
while ($i < 20)
$i++;
$i++;
}
In that example, the second while loop would kill the one on top due to the
value of $i. Try double-checking your code, and if it still doesn't work
then post the code that can reproduce misbehavior if possible :-)
--Steven Lawrance--
PHP
Personal Web Site and E-Mail:
slawrance@technologist.com
http://www.bryant.edu/~ssl2 (SSL2)