ID: 16199
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Bogus
-Bug Type: *General Issues
+Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.5
PHP Version: 4.1.2
New Comment:
This is NOT a bug!
for ($i=0; $i<60; $i++);
^^^
You don't want that semi-colon there. Remove it and it works as
expected!
Loops are working perfectly: I use loops more than you write PHP code
and they always work for me! RTFM!
Previous Comments:
------------------------------------------------------------------------
[2002-05-03 14:05:34] [EMAIL PROTECTED]
Reopening, as the original problem is not yet resolved.
Please provide a *short* and *self-contained* example so we can
reproduce it.
------------------------------------------------------------------------
[2002-05-03 13:53:44] [EMAIL PROTECTED]
This is a bug. I've had mutiple people come up with the same result.
Let's stop being lazy, and really try to duplicate this. Actually, I
already rewrote my code, to account for this. Might as well, leave it
as "BOGUS". Yeah right.
------------------------------------------------------------------------
[2002-05-03 10:02:52] [EMAIL PROTECTED]
what about the semicolon after for (...) ?
------------------------------------------------------------------------
[2002-05-03 09:47:59] [EMAIL PROTECTED]
i have an even simpler example:
for ($i=0; $i<60; $i++);
{
echo $i . "<br>";
}
this is producing only one iteration throught the loop!
the result of this loop is visible at http://www.gleep.org/
test/index.php and the loop visible at http://
www.gleep.org/test/index.phps
i'm running 4.2.0 on apache 1.3.24 on a linux box. i've
tried it on 4.1.2 and i get the same thing!
i know i've used for loops before and not had this
problem...
------------------------------------------------------------------------
[2002-03-21 18:04:26] [EMAIL PROTECTED]
Hey guys,
I have try statically filling the var, and the problem does indeed
still persist. Here's recap:
FreeBSD 4.5
php 4.1.2
apache 1.3.23
My configure line:
'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--without-gd' '--without-mysql' '--with-zlib'
'--with-mysql=/usr/local' '--enable-sockets' '--enable-trans-sid'
'--prefix=/usr/local'
And of coarse, the above code.
------------------------------------------------------------------------
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/16199
--
Edit this bug report at http://bugs.php.net/?id=16199&edit=1