cvs: pear /DB/DB pgsql.php

From: Date: Fri, 24 Dec 2004 20:49:37 +0000
Subject: cvs: pear /DB/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27814@lists.php.net to get a copy of this message
danielc Fri Dec 24 15:49:37 2004 EDT Modified files: /pear/DB/DB pgsql.php Log: * Make $num_rows property private. http://cvs.php.net/diff.php/pear/DB/DB/pgsql.php?r1=1.87&r2=1.88&ty=u Index: pear/DB/DB/pgsql.php diff -u pear/DB/DB/pgsql.php:1.87 pear/DB/DB/pgsql.php:1.88 --- pear/DB/DB/pgsql.php:1.87 Fri Dec 17 11:52:43 2004 +++ pear/DB/DB/pgsql.php Fri Dec 24 15:49:36 2004 @@ -19,7 +19,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version CVS: $Id: pgsql.php,v 1.87 2004/12/17 16:52:43 danielc Exp $ + * @version CVS: $Id: pgsql.php,v 1.88 2004/12/24 20:49:36 danielc Exp $ * @link http://pear.php.net/package/DB */ @@ -53,7 +53,7 @@ var $transaction_opcount = 0; var $dsn = array(); var $row = array(); - var $num_rows = array(); + var $_num_rows = array(); var $affected = 0; var $autocommit = true; var $fetchmode = DB_FETCHMODE_ORDERED; @@ -217,7 +217,7 @@ if (is_object($numrows)) { return $numrows; } - $this->num_rows[(int)$result] = $numrows; + $this->_num_rows[(int)$result] = $numrows; $this->affected = 0; return $result; } else { @@ -306,7 +306,7 @@ { $result_int = (int)$result; $rownum = ($rownum !== null) ? $rownum : $this->row[$result_int]; - if ($rownum >= $this->num_rows[$result_int]) { + if ($rownum >= $this->_num_rows[$result_int]) { return null; } if ($fetchmode & DB_FETCHMODE_ASSOC) { @@ -348,7 +348,7 @@ { if (is_resource($result)) { unset($this->row[(int)$result]); - unset($this->num_rows[(int)$result]); + unset($this->_num_rows[(int)$result]); $this->affected = 0; return @pg_freeresult($result); }

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