From 2b4daffd971fddb427d37ea37959918dc9fb38de Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 27 Jan 2010 12:40:44 +0000 Subject: [PATCH] Assigning the return value of new by reference is deprecated git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7295 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/pear/DB.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pear/DB.php b/lib/pear/DB.php index 4b3148db5..602e61810 100644 --- a/lib/pear/DB.php +++ b/lib/pear/DB.php @@ -307,7 +307,7 @@ class DB return $tmp; } - @$obj =& new $classname; + @$obj = new $classname; foreach ($options as $option => $value) { $test = $obj->setOption($option, $value); @@ -381,7 +381,7 @@ class DB return $tmp; } - @$obj =& new $classname; + @$obj = new $classname; foreach ($options as $option => $value) { $test = $obj->setOption($option, $value); @@ -887,7 +887,7 @@ class DB_result if ($object_class == 'stdClass') { $arr = (object) $arr; } else { - $arr = &new $object_class($arr); + $arr = new $object_class($arr); } } return $arr; -- 2.45.0