Re: cvs: php4 /pear/DB mysql.php

From: Date: Thu, 16 Aug 2001 08:52:25 +0000
Subject: Re: cvs: php4 /pear/DB mysql.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-551@lists.php.net to get a copy of this message
Stig Sæther Bakken wrote: > > ["Thomas V.V.Cox" <cox@idecnet.com>] > > cox Wed Aug 15 19:22:33 2001 EDT > > > > @@ -674,7 +674,7 @@ > > } > > > > // free the result only if we were called on a table > > - if ($table) { > > + if (is_resource($result)) { > > @mysql_free_result($id); > > } > > return $res; > > Shouldn't that be is_resource($id)? > Free is only needed when called as $db->tableInfo('table'); Any way I did wrong the fix and free it in the case of $res->tableInfo(). Re-fixed now. Tomas V.V.Cox

« previous php.pear.cvs (#551) next »