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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC