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
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: 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: Sat Dec 21 16:01:28 2024 UTC