php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12983 crash due to infinite loop
Submitted: 2001-08-27 14:46 UTC Modified: 2001-08-27 16:20 UTC
From: admin at odyssey dot co dot in Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.0.4 OS: linux
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: admin at odyssey dot co dot in
New email:
PHP Version: OS:

 

 [2001-08-27 14:46 UTC] admin at odyssey dot co dot in
if you run a loop with a typing error such as the following where $j is not defined the system goes into a infinite loop and causes the shutdown of all running services.

for ($i = 0; $i < $numrows; ++$j){
  # something
}

Not really a bug but shouldn't we get a timeout error here ?

Alfred Tuinman

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-27 16:20 UTC] sniper@php.net
Like you said, not really a bug. 
You can also shoot yourself in your foot but is it wise? :)

This is very common problem, and to keep PHP as fast as
it is there won't be any changes in this in the near
future. 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC