PEAR::DB (mysql) bug - memory eat up

From: Date: Tue, 03 Sep 2002 16:04:37 +0000
Subject: PEAR::DB (mysql) bug - memory eat up
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8825@lists.php.net to get a copy of this message
i have a script which imports data from a CSV-file, since it runs quite some DB-queries i realized that somehow the memory became less and less i found out that in the DB/mysql.php '$this->num_rows' grows and grows. so i changed the freeResult to unset the numRows first:
    function freeResult($result)
    {
        unset($this->num_rows);
..... this helps and the amount of memory (size of the object) stays the same i checked the size of the object using:
       strlen(serialize($the_Object_Using_PEAR_mysql_DB))
if this can be confirmed to be a bug, it would be nice to be fixed soon! -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#8825) next »