|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8199 Error with for() ?
Submitted: 2000-12-11 18:45 UTC Modified: 2000-12-11 18:51 UTC
From: vader82 at belsouth dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.3pl1 OS: Slackware 7.1
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: vader82 at belsouth dot net
New email:
PHP Version: OS:


 [2000-12-11 18:45 UTC] vader82 at belsouth dot net
I think there is an error with the for() command, but perhaps there is something I am not seeing.

	        $num_fields = 3
parse error-->	for ( $i = 0; $i < $num_fields; i++){ 
	        echo "It works" ;
		} ;
and according to the manual that should work
for (exp1; exp2; exp3) statement

compiled with
--with-mysql --with-apxs

email me for the php.ini



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-11 18:51 UTC]
You forgot the ; before the for(;;) line
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 19:01:30 2024 UTC