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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC