php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45009 crash
Submitted: 2008-05-15 15:41 UTC Modified: 2008-05-15 15:56 UTC
From: sam dot newhouse at hotmail dot net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.4.8 OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sam dot newhouse at hotmail dot net
New email:
PHP Version: OS:

 

 [2008-05-15 15:41 UTC] sam dot newhouse at hotmail dot net
Description:
------------
crashes when I run the following code

Reproduce code:
---------------
<?

foreach($i=0;$>-100;$i++){

print "something";

}

?>

Expected result:
----------------
print sometimg 100 timez

Actual result:
--------------
CRASH :(!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-15 15:56 UTC] pajoye@php.net
Syntax error is not a crash. A foreach does not use the same syntax as a for loop, see the manual for more info. Not a bug > bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC