PHP 4.0 Bug #2164: Memory leak with current/next

From: Date: Thu, 26 Aug 1999 11:41:38 +0000
Subject: PHP 4.0 Bug #2164: Memory leak with current/next
Groups: php.dev 
Request: Send a blank email to php-dev+get-10220@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: LinuxPPC R5/Linux 2.2.10 PHP version: 4.0 Latest CVS (26/08/1999) PHP Bug Type: Scripting Engine problem Bug description: Memory leak with current/next 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; reset($this->KEYS); } } $m = new message; $m->make_dict(); $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>

« previous php.dev (#10220) next »