|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2164 Memory leak with current/next
Submitted: 1999-08-26 07:41 UTC Modified: 1999-09-27 10:41 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (26/08/1999) OS: LinuxPPC R5/Linux 2.2.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: christophe dot massiot at mail dot dotcom dot fr
New email:
PHP Version: OS:


 [1999-08-26 07:41 UTC] christophe dot massiot at mail dot dotcom dot fr
The following script :
class message {
  var $KEYS = array("meuh");

function make_dict() {
  $this->titi = "";   
  for( ; $key = current($this->KEYS); next($this->KEYS))
    $this->titi[$key] = $toto;

$m = new message;
$err = $m->make_dict();

produces :

Content-Type: text/html

resultat_modif.phtml:  Freeing 0x018FE6A0 (40 bytes), allocated in zend_hash.c on line 175<br>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-27 10:41 UTC] andrey at cvs dot php dot net
This is working in the current CVS.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Sep 19 17:01:25 2020 UTC