php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11733 Crash on For Loop
Submitted: 2001-06-27 08:15 UTC Modified: 2001-06-27 20:09 UTC
From: ufuk dot kocolu at isletmekulubu dot com Assigned:
Status: Not a bug Package: *Function Specific
PHP Version: 4.0.6 OS: NT4.0
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: ufuk dot kocolu at isletmekulubu dot com
New email:
PHP Version: OS:

 

 [2001-06-27 08:15 UTC] ufuk dot kocolu at isletmekulubu dot com
I can't get anything when I code:
for ($i == 0; $i == 5; $i++)
    {
   echo $i;   
    } 
But there's no problem with:
for ($i == 0; $i < 5; $i++)
    {
   echo $i;   
    }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 13:35 UTC] sniper@php.net
RTFM. Use $i=0. 

 [2001-06-27 20:09 UTC] cynic@php.net
besides, the $i == 5 statement is also bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC