#23534 [Bgs->Opn]: while and for loops getting stuck when counter check exceeds 13
| From: | mark at onelauter dot com | Date: | Tue, 13 May 2003 04:34:04 +0000 |
| Subject: | #23534 [Bgs->Opn]: 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-39506@lists.php.net to get a copy of this message | ||
ID: 23534
User updated by: mark at onelauter dot com
Reported By: mark at onelauter dot com
-Status: Bogus
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Windows 2000 Server
PHP Version: 4.3.1
New Comment:
I totally wiped the server (reformatted the HD) and reinstalled
everything.
I still encounter the same problem.
However, from the localhost everything works as expected. There are no
errors in any of the php scripts. I only encounter the problem when
trying to access the scripts from another machine. I had lots of
trouble getting file permissions set and wonder if this could still be
an issue, although I'm not getting any permission errors. Scripts also
run fine from the local command line.
Previous Comments:
------------------------------------------------------------------------
[2003-05-08 11:31:16] mark at onelauter dot com
I suspect that you're correct. I can run scripts from the command line
with no problems so I think it has something to do with the ISAPI
setup. I've checked build numbers on the 2 web servers and they're the
same, it runs on one but not the other.
I'll just wipe the box and start over. If it fixes it I'll let you
know.
Cheers. :)
------------------------------------------------------------------------
[2003-05-08 03:26:43] edink@php.net
This is something wrong with your local configuration. The exact same
setup is running on many installs without the described problem. I
suggest you try re-installing php with default php.ini first, and then
if it doesn't help re-installing the whole machine.
------------------------------------------------------------------------
[2003-05-08 01:08:34] mark at onelauter dot com
I don't know if it will help, but this sample also doesn't work.
<?php
for ($i=0;$i < 15;$i++)
{
?>
test
<?
}
?>
There seems to be an issue with the output buffer. FWIW, I have
buffering turned off to avoid the performance hit.
------------------------------------------------------------------------
[2003-05-08 00:51:05] mark at onelauter dot com
I found the same issue with "print" as I did with "echo".
------------------------------------------------------------------------
[2003-05-08 00:22:52] mark at onelauter dot com
One new important development. I just figured out that its not the
while loop or for loop that are generating the problem.
This works.
while ($i < 50)
{
$i++;
}
echo "$i ";
However, if I put 14 echo statements in the file it fails. In other
words, this works.
echo "1";
echo "2";
... lots of echos ...
echo "13";
But if I add one more echo to the file it goes off into never never
land.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23534
--
Edit this bug report at http://bugs.php.net/?id=23534&edit=1