Re: free allocated memory: HOW ?

From: Date: Fri, 13 Apr 2007 22:34:10 +0000
Subject: Re: free allocated memory: HOW ?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-252902@lists.php.net to get a copy of this message
On Fri, April 13, 2007 12:49 am, Arthur Erdös wrote: > $abonents = $personAction->findAbonents($start, $offset); > $size = $personAction->countFoundRows(); > $this->logger->debug("Found " . $size . " abonents...."); > $loops = ceil($size/self::PROCESS_ABONENTS); > $this->logger->debug("Need " . $loops . " loops at " . > self::PROCESS_ABONENTS . " abonents per loop"); > for($i = 0; $i < $loops; $i++){ > $start = $i*self::PROCESS_ABONENTS; > $abonents = $personAction->findAbonents($start, > self::PROCESS_ABONENTS); What happened to the other $abonents you set about 6 lines ago?... > // unset($text, $lvo); > $text = null; > $lvo = null; > sleep(1); Do the unset() as well on each var, I think. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#252902) next »