php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2009 Memory leak in switch() (zend_hash.c)
Submitted: 1999-08-09 14:20 UTC Modified: 1999-08-09 14:34 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (09/08/1999) OS: Linux 2.0.36/Debian slink
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: christophe dot massiot at mail dot dotcom dot fr
New email:
PHP Version: OS:

 

 [1999-08-09 14:20 UTC] christophe dot massiot at mail dot dotcom dot fr
The following script :

<? 
  switch ($argc) {  }
?>

produces :

20:17 [webase3:p3] titi:~/html% php temp.phtml
Content-Type: text/html

temp.phtml:  Freeing 0x080EDFF8 (4 bytes), allocated in zend_hash.c on line 185<br>
temp.phtml:  Freeing 0x080EDFA8 (40 bytes), allocated in zend_hash.c on line 175<br>

Note that $argc is not randomly chosen : you must use a variable that has been defined, either by the CGI, of with the GET or POST methods. With a plain variable ($foobar) it doesn't show up.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-09 14:34 UTC] zeev at cvs dot php dot net
Already fixed in the latest CVS - thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC