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
 [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 Mar 28 17:01:29 2024 UTC