php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

<?php
	        $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

thanks

Patches

Pull Requests

History

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