php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23518 with wrong for loop unexpected behavior
Submitted: 2003-05-06 19:31 UTC Modified: 2003-05-09 00:15 UTC
From: beyerlin at magic-garden dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.1 OS: openbsd3.2
Private report: No CVE-ID: None
 [2003-05-06 19:31 UTC] beyerlin at magic-garden dot de
when using a comma instead of a semicolon, nothing is echoed, also when the loop is uncommented and/or in an uncalled function.

echo "start":
for( $x=0;$x<100,$x++)
{
      echo $x;
}
echo "end";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-09 00:15 UTC] magnus@php.net
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.

Nothing is echoed because you don't have error reporting turned on and there is a syntax error in your code.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 16:00:01 2026 UTC