php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7367 for loop
Submitted: 2000-10-20 09:58 UTC Modified: 2000-10-20 10:09 UTC
From: d dot stender at regiocom-aachen dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: Linux / RedHat6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: d dot stender at regiocom-aachen dot de
New email:
PHP Version: OS:

 

 [2000-10-20 09:58 UTC] d dot stender at regiocom-aachen dot de
Hello everyone,

for ($i = 0; $i < $max; $i++ ) {
  echo $i
}

works while

for ($i = 0; $i < $max; $i++; ) {
  echo $i
}

does not. Note the added ; in the for definition.

greetings,

Dominique Stender

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-20 10:09 UTC] derick@php.net
Of course it doesn't. This is not a bug, that syntax is just wrong.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 23 22:00:01 2026 UTC