ID: 27214 Updated by: [EMAIL PROTECTED] Reported By: ryanlewellen at comcast dot net Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP Professional PHP Version: 4.3.5RC2 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. = != == Previous Comments: ------------------------------------------------------------------------ [2004-02-10 17:30:14] ryanlewellen at comcast dot net Description: ------------ When i put an IF statement inside a FOR statement, i ran into the problem that it went into an infinite loop. However, when i took out the IF statement, it did what i wanted it to do. Reproduce code: --------------- <?php echo ("This is a FOR STATEMENT <BR>"); $counter0=0; for ($counter0=0; $counter0<=100; $counter0++) { echo ("Pass # " . $counter0 . " is now in effect. <BR>"); if ($counter0=50) { echo ("Only 50 more to go!"); } } ?> Expected result: ---------------- It would create 100 lines in a webpage, with increasing values, and at 50, it would echo "Only 50 more to go!" and continue on. Actual result: -------------- It started at 0, jumped to 50, and ran into an infinite loop. See for yourself. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27214&edit=1