#23534 [NEW]: while and for loops getting stuck when counter check exceeds 13
| From: | mark at onelauter dot com | Date: | Wed, 07 May 2003 21:23:34 +0000 |
| Subject: | #23534 [NEW]: while and for loops getting stuck when counter check exceeds 13 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39252@lists.php.net to get a copy of this message | ||
From: mark at onelauter dot com
Operating system: Windows 2000 Server
PHP version: 4.3.1
PHP Bug Type: Scripting Engine problem
Bug description: while and for loops getting stuck when counter check exceeds 13
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 bug report at http://bugs.php.net/?id=23534&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23534&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23534&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23534&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23534&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23534&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23534&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23534&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23534&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23534&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23534&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23534&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23534&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23534&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23534&r=gnused