Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #2109: Memory leak in each()

From: Date: Sat, 21 Aug 1999 19:46:51 +0000
Subject: Re: [PHP4BETA] Re: [PHP-DEV] PHP 4.0 Bug #2109: Memory leak in each()
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3630@lists.php.net to get a copy of this message
hmm checked again (latest CVS). if you take out the "$err =" in the last line the leak goes away.. if you leave the "$err =" in and use $tubu uninitalized you get the leaks. weird, tc On Sat, 21 Aug 1999, Andrey Zmievski wrote: > >hi, > > > >gives the same leak on my machine (latest CVS) - (andrey, are u running > >with --enable-debug?). > > > >ass foo { > >function affiche_dict() { > >// $toto = 1; > > $this->dict["date_message"] = $toto; > > while (list($key, $val) = each($this->dict)) {} > >} > >} > > > >uncommenting the $toto = 1 line will "cure" the mem-leaks. > > Yes, I am running with --enable-debug. Still no leaks. > > -Andrey > * Change is the only constant. * > > -- > PHP 4 Beta > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#3630) next »