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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 14:01:35 2025 UTC