cvs: pear /DB_DataObject DataObject.php

From: Date: Mon, 16 Oct 2006 02:17:14 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42586@lists.php.net to get a copy of this message
alan_k Mon Oct 16 02:17:14 2006 UTC Modified files: /pear/DB_DataObject DataObject.php Log: fix bug #8876 - call free after count - hopefully this will not break anything! http://cvs.php.net/viewvc.cgi/pear/DB_DataObject/DataObject.php?r1=1.420&r2=1.421&diff_format=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.420 pear/DB_DataObject/DataObject.php:1.421 --- pear/DB_DataObject/DataObject.php:1.420 Mon Oct 16 02:10:36 2006 +++ pear/DB_DataObject/DataObject.php Mon Oct 16 02:17:14 2006 @@ -15,7 +15,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DataObject.php,v 1.420 2006/10/16 02:10:36 alan_k Exp $ + * @version CVS: $Id: DataObject.php,v 1.421 2006/10/16 02:17:14 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -1535,6 +1535,9 @@ $result = &$_DB_DATAOBJECT['RESULTS'][$t->_DB_resultid]; $l = $result->fetchRow(DB_DATAOBJECT_FETCHMODE_ORDERED); + // free the results - essential on oracle. + $t->free(); + return (int) $l[0]; }

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