cvs: php4 /pear/DB storage.php
| From: | Thomas V.V.Cox | Date: | Sun, 23 Dec 2001 02:32:12 +0000 |
| Subject: | cvs: php4 /pear/DB storage.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1664@lists.php.net to get a copy of this message | ||
cox Sat Dec 22 21:32:12 2001 EDT
Modified files:
/php4/pear/DB storage.php
Log:
Call-time pass-by-reference fixes
Index: php4/pear/DB/storage.php
diff -u php4/pear/DB/storage.php:1.26 php4/pear/DB/storage.php:1.27
--- php4/pear/DB/storage.php:1.26 Tue Dec 11 10:31:18 2001
+++ php4/pear/DB/storage.php Sat Dec 22 21:32:12 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: storage.php,v 1.26 2001/12/11 15:31:18 sebastian Exp $
+// $Id: storage.php,v 1.27 2001/12/23 02:32:12 cox Exp $
//
// DB_storage: a class that lets you return SQL data as objects that
// can be manipulated and that updates the database accordingly.
@@ -204,7 +204,7 @@
*/
function toString()
{
- $info = get_class(&$this);
+ $info = get_class($this);
$info .= " (table=";
$info .= $this->_table;
$info .= ", keycolumn=";
@@ -264,7 +264,7 @@
*/
function &create($table, &$data)
{
- $classname = get_class(&$this);
+ $classname = get_class($this);
$obj = new $classname($table);
reset($data);
while (list($name, $value) = each($data)) {
@@ -341,9 +341,9 @@
$valid = @call_user_func($this->_validator,
$this->_table,
$property,
- &$newvalue,
- &$this->$property,
- &$this);
+ $newvalue,
+ $this->$property,
+ $this);
}
if ($valid) {
$this->$property = $newvalue;
@@ -407,7 +407,7 @@
implode(', ', $vars) . ' WHERE ' .
$this->_makeWhere();
$stmt = $this->_dbh->prepare($query);
- $res = $this->_dbh->execute($stmt, &$params);
+ $res = $this->_dbh->execute($stmt, $params);
if (DB::isError($res)) {
return $res;
}