php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5129 100% usage of system memory and crashes
Submitted: 2000-06-19 18:42 UTC Modified: 2000-06-19 19:13 UTC
From: jesse at erieonline dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.0 Release OS: slackware 7
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: jesse at erieonline dot com
New email:
PHP Version: OS:

 

 [2000-06-19 18:42 UTC] jesse at erieonline dot com
The folling code will kill the server using 100% of the memory.

function options_form() { 
  global $HTTP_COOKIE_VARS;

  while(list($key,$val) = each(explode("#!#", $HTTP_COOKIE_VARS[Focus]))) {
    list($k,$v) = explode(":", $val);
    $$k = $v;
  }
  ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-19 19:13 UTC] stas at cvs dot php dot net
This is not a bug. explode is called every time you get to "while" line.
Use variable to store explode result.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 16:01:35 2025 UTC