PHP 4.0 Bug #2109: Memory leak in each()

From: Date: Thu, 19 Aug 1999 23:24:41 +0000
Subject: PHP 4.0 Bug #2109: Memory leak in each()
Groups: php.dev 
Request: Send a blank email to php-dev+get-10020@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Linux 2.0.36/Debian slink PHP version: 4.0 Latest CVS (19/08/1999) PHP Bug Type: Scripting Engine problem Bug description: Memory leak in each() The following script : <? class foo { function affiche_dict() { $this->dict[date_message] = $toto; while (list($key, $val) = each($this->dict)) {} } } $bar = new foo; $err = $bar->affiche_dict(); ?> produces : 1:22 [webase3:p3] titi:~/html% php test.php Content-Type: text/html test.php: Freeing 0x080F0308 (41 bytes), allocated in zend_hash.c on line 175<br> test.php: Freeing 0x080F02B8 (35 bytes), allocated in zend_hash.c on line 380<br> test.php: Freeing 0x080F5D48 (4 bytes), allocated in zend_hash.c on line 391<br>

« previous php.dev (#10020) next »