#23534 [Opn->Fbk]: while and for loops getting stuck when counter check exceeds 13
| From: | moriyoshi@php.net | Date: | Wed, 07 May 2003 21:29:25 +0000 |
| Subject: | #23534 [Opn->Fbk]: while and for loops getting stuck when counter check exceeds 13 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39253@lists.php.net to get a copy of this message | ||
ID: 23534
Updated by: moriyoshi@php.net
Reported By: mark at onelauter dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows 2000 Server
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-05-07 16:23:34] mark at onelauter dot com
This works.
for ($i=0; $i < 13; $i++)
{
echo "$i ";
}
This gets stuck in an infinate loop.
for ($i=0; $i < 14; $i++)
{
echo "$i ";
}
Any value of 14 or greater results in the same problem.
It also occurs with while loops.
This works.
$i = 0;
while ($i < 13)
{
echo "$i ";
$i++;
}
This gets stuck in an infinate loop.
$i = 0;
while ($i < 14)
{
echo "$i ";
$i++;
}
The same problem will occur if I do this.
$i = 0;
while ($i < 13)
{
echo "$i ";
$i++;
}
for ($i=0; $i < 13; $i++)
{
echo "$i ";
}
Even though the loops would work indepedently, they won't work in the
same php file.
I'm running as an ISAPI process with IIS 5 (inetinfo.exe version #
5.0.2195.3649). If I run the same test script on the command line with
php.exe I don't have a problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23534&edit=1