summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-10-14 06:55:57 +0000
committeralecpl <alec@alec.pl>2009-10-14 06:55:57 +0000
commitab46578d98853cfddab3bd47456c918feb3584bf (patch)
tree0fe326c0375df2e3def3f97e9263f227e399c854 /program
parent65c0a0e591d917e87d54f499f9b25da522746aed (diff)
- removed deprecated returning value of new by reference
Diffstat (limited to 'program')
-rw-r--r--program/lib/MDB2.php2
-rw-r--r--program/lib/MDB2/Driver/mssql.php2
-rw-r--r--program/lib/MDB2/Driver/mysql.php2
-rw-r--r--program/lib/MDB2/Driver/mysqli.php2
-rw-r--r--program/lib/MDB2/Driver/pgsql.php2
-rw-r--r--program/lib/MDB2/Driver/sqlite.php2
-rw-r--r--program/lib/Mail/mimeDecode.php2
-rw-r--r--program/lib/PEAR.php4
8 files changed, 9 insertions, 9 deletions
diff --git a/program/lib/MDB2.php b/program/lib/MDB2.php
index 762eb068a..6615aef2f 100644
--- a/program/lib/MDB2.php
+++ b/program/lib/MDB2.php
@@ -1926,7 +1926,7 @@ class MDB2_Driver_Common extends PEAR
return $err;
}
$this->{$property} = new $class_name($this->db_index);
- $this->modules[$module] =& $this->{$property};
+ $this->modules[$module] = $this->{$property};
if ($version) {
// this will be used in the connect method to determine if the module
// needs to be loaded with a different version if the server
diff --git a/program/lib/MDB2/Driver/mssql.php b/program/lib/MDB2/Driver/mssql.php
index 027447b08..46cb78197 100644
--- a/program/lib/MDB2/Driver/mssql.php
+++ b/program/lib/MDB2/Driver/mssql.php
@@ -911,7 +911,7 @@ class MDB2_Result_mssql extends MDB2_Result_Common
if ($object_class == 'stdClass') {
$row = (object) $row;
} else {
- $row = &new $object_class($row);
+ $row = new $object_class($row);
}
}
++$this->rownum;
diff --git a/program/lib/MDB2/Driver/mysql.php b/program/lib/MDB2/Driver/mysql.php
index 96210e43b..425d9b219 100644
--- a/program/lib/MDB2/Driver/mysql.php
+++ b/program/lib/MDB2/Driver/mysql.php
@@ -1393,7 +1393,7 @@ class MDB2_Result_mysql extends MDB2_Result_Common
if ($object_class == 'stdClass') {
$row = (object) $row;
} else {
- $row = &new $object_class($row);
+ $row = new $object_class($row);
}
}
++$this->rownum;
diff --git a/program/lib/MDB2/Driver/mysqli.php b/program/lib/MDB2/Driver/mysqli.php
index 3f8f9611e..8f0379147 100644
--- a/program/lib/MDB2/Driver/mysqli.php
+++ b/program/lib/MDB2/Driver/mysqli.php
@@ -1409,7 +1409,7 @@ class MDB2_Result_mysqli extends MDB2_Result_Common
if ($object_class == 'stdClass') {
$row = (object) $row;
} else {
- $row = &new $object_class($row);
+ $row = new $object_class($row);
}
}
++$this->rownum;
diff --git a/program/lib/MDB2/Driver/pgsql.php b/program/lib/MDB2/Driver/pgsql.php
index 24af05655..de27bae7d 100644
--- a/program/lib/MDB2/Driver/pgsql.php
+++ b/program/lib/MDB2/Driver/pgsql.php
@@ -1188,7 +1188,7 @@ class MDB2_Result_pgsql extends MDB2_Result_Common
if ($object_class == 'stdClass') {
$row = (object) $row;
} else {
- $row = &new $object_class($row);
+ $row = new $object_class($row);
}
}
++$this->rownum;
diff --git a/program/lib/MDB2/Driver/sqlite.php b/program/lib/MDB2/Driver/sqlite.php
index c8c485de6..adb5551cb 100644
--- a/program/lib/MDB2/Driver/sqlite.php
+++ b/program/lib/MDB2/Driver/sqlite.php
@@ -949,7 +949,7 @@ class MDB2_Result_sqlite extends MDB2_Result_Common
if ($object_class == 'stdClass') {
$row = (object) $row;
} else {
- $row = &new $object_class($row);
+ $row = new $object_class($row);
}
}
++$this->rownum;
diff --git a/program/lib/Mail/mimeDecode.php b/program/lib/Mail/mimeDecode.php
index 46eabd82f..bb34f6e28 100644
--- a/program/lib/Mail/mimeDecode.php
+++ b/program/lib/Mail/mimeDecode.php
@@ -321,7 +321,7 @@ class Mail_mimeDecode extends PEAR
break;
case 'message/rfc822':
- $obj = &new Mail_mimeDecode($body);
+ $obj = new Mail_mimeDecode($body);
$return->parts[] = $obj->decode(array('include_bodies' => $this->_include_bodies,
'decode_bodies' => $this->_decode_bodies,
'decode_headers' => $this->_decode_headers));
diff --git a/program/lib/PEAR.php b/program/lib/PEAR.php
index 9c2c67bcf..61862a956 100644
--- a/program/lib/PEAR.php
+++ b/program/lib/PEAR.php
@@ -560,10 +560,10 @@ class PEAR
$ec = 'PEAR_Error';
}
if ($skipmsg) {
- $a = &new $ec($code, $mode, $options, $userinfo);
+ $a = new $ec($code, $mode, $options, $userinfo);
return $a;
} else {
- $a = &new $ec($message, $code, $mode, $options, $userinfo);
+ $a = new $ec($message, $code, $mode, $options, $userinfo);
return $a;
}
}