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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 1 = ?
Subscribe to this entry?

 
 [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: Sun May 05 15:01:33 2024 UTC