cvs: pear /MDB common.php

From: Date: Fri, 17 May 2002 19:04:25 +0000
Subject: cvs: pear /MDB common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3912@lists.php.net to get a copy of this message
lsmith Fri May 17 15:04:25 2002 EDT Modified files: /pear/MDB common.php Log: call by reference in method calls eliminated to get rid of warnings Index: pear/MDB/common.php diff -u pear/MDB/common.php:1.7 pear/MDB/common.php:1.8 --- pear/MDB/common.php:1.7 Fri May 17 13:35:31 2002 +++ pear/MDB/common.php Fri May 17 15:04:24 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: common.php,v 1.7 2002/05/17 17:35:31 lsmith Exp $ +// $Id: common.php,v 1.8 2002/05/17 19:04:24 lsmith Exp $ // // Base class for DB implementations. // @@ -1234,7 +1234,7 @@ // added $fetchmode function fetchInto($result, &$array, $fetchmode = DB_FETCHMODE_DEFAULT, $row = null) { - return ($this->baseFetchArray($result, &$array, $row)); + return ($this->baseFetchArray($result, $array, $row)); } // renamed for PEAR @@ -1288,7 +1288,7 @@ return ($this->setError("Fetch field", "it was not specified a valid result set")); } $temp = array(); - for($success = 1, $column = array(), $row = 0;!$this->EndOfResult($result); $row++) { + for($success = 1, $column = array(), $row = 0;!$this->endOfResult($result); $row++) { if ($this->ResultIsNull($result, 0, 0)) { continue; } @@ -1324,7 +1324,7 @@ } $row = 0; $all = array(); - while (DB_OK === $this->fetchInto($result, &$array, $fetchmode, null)) { + while (DB_OK === $this->fetchInto($result, $array, $fetchmode, null)) { if ($rekey) { if ($fetchmode == DB_FETCHMODE_ASSOC) { reset($array); @@ -1526,13 +1526,13 @@ return $result; } - $err = $this->fetchField($result, &$value,DB_FETCHMODE_ORDERED); + $err = $this->fetchField($result, $value, DB_FETCHMODE_ORDERED); if ($err !== DB_OK) { return $err; } if (isset($prepared_query)) { - $result = $this->FreePreparedQuery($prepared_query); + $result = $this->freePreparedQuery($prepared_query); if (MDB::isError($result)) return $result; } @@ -1540,7 +1540,7 @@ return $value; } - function &getRow($query, $params = array(), $fetchmode = DB_FETCHMODE_DEFAULT) + function &getRow($query, $params = array(), $fetchmode = DB_FETCHMODE_DEFAULT) { $fetchmode = (empty($fetchmode)) ? DB_FETCHMODE_DEFAULT : $fetchmode; settype($params, 'array'); @@ -1558,13 +1558,13 @@ if (MDB::isError($result)) { return $result; } - $err = $this->fetchRow($result, &$row, $fetchmode); + $err = $this->fetchRow($result, $row, $fetchmode); if ($err !== DB_OK) { return $err; } if (isset($prepared_query)) { - $result = $this->FreePreparedQuery($prepared_query); + $result = $this->freePreparedQuery($prepared_query); if (MDB::isError($result)) return $result; } @@ -1592,13 +1592,13 @@ return $result; } - $err = $this->fetchColumn($result, &$col, $fetchmode); + $err = $this->fetchColumn($result, $col, $fetchmode); if ($err !== DB_OK) { return $err; } if (isset($prepared_query)) { - $result = $this->FreePreparedQuery($prepared_query); + $result = $this->freePreparedQuery($prepared_query); if (MDB::isError($result)) return $result; } @@ -1626,12 +1626,12 @@ return $result; } - $err = $this->fetchAll($result, &$all, $fetchmode); + $err = $this->fetchAll($result, $all, $fetchmode); if (MDB::isError($err)) { return $err; } if (isset($prepared_query)) { - $result = $this->FreePreparedQuery($prepared_query); + $result = $this->freePreparedQuery($prepared_query); if (MDB::isError($result)) return $result; } @@ -1660,12 +1660,12 @@ return $result; } - $err = $this->fetchAll($result, &$all, $fetchmode, true, $force_array, $group); + $err = $this->fetchAll($result, $all, $fetchmode, true, $force_array, $group); if (MDB::isError($err)) { return $err; } if (isset($prepared_query)) { - $result = $this->FreePreparedQuery($prepared_query); + $result = $this->freePreparedQuery($prepared_query); if (MDB::isError($result)) return $result; }

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