|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
44 - 41 = ?
Subscribe to this entry?

 [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: Sun Mar 03 22:01:27 2024 UTC