ID: 9971
Updated by: lyric
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

Two things.

1) You should use "$i == 10" for a comparison. By using a single equals, you're 
assigning 10 to $i, which is always "true".

2) What do you expect it to do?  If you want to loop to iterate 10 times, you should 
use "$i<10" (the loop continues while the second term is TRUE)


Previous Comments:
---------------------------------------------------------------------------

[2001-03-24 12:39:35] [EMAIL PROTECTED]
I use PHP4.0.5dev on NT4.0
the code is simple 
<table border=0>
<?
for ($i = 0; $i = $newvalue; $i++)
 {
?>
<tr>
<td>
<? echo $i; ?>
</td>
</tr>
<?
}
?>
</table>

---------------------------------------------------------------------------

[2001-03-24 12:07:35] [EMAIL PROTECTED]
Can you post the whole source of a script that crashes on the web somewhere? (Or if 
it's small, put it into this bug report). Can you also tell which version of PHP4 you 
are using?

---------------------------------------------------------------------------

[2001-03-24 12:04:20] [EMAIL PROTECTED]
I get a crash, my whole system stops and I have to restart usually.

---------------------------------------------------------------------------

[2001-03-24 11:57:10] [EMAIL PROTECTED]
I get a crash, my whole system stops and I have to restart usually.

---------------------------------------------------------------------------

[2001-03-24 11:31:00] [EMAIL PROTECTED]
Do you get a crash or a parse error?

---------------------------------------------------------------------------

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9971&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to