[Svn] r3039 - in trunk/roundcubemail/program/lib: . MDB2/Driver Mail

trac at roundcube.net trac at roundcube.net
Wed Oct 14 08:55:57 CEST 2009


Author: alec
Date: 2009-10-14 01:55:57 -0500 (Wed, 14 Oct 2009)
New Revision: 3039

Modified:
   trunk/roundcubemail/program/lib/MDB2.php
   trunk/roundcubemail/program/lib/MDB2/Driver/mssql.php
   trunk/roundcubemail/program/lib/MDB2/Driver/mysql.php
   trunk/roundcubemail/program/lib/MDB2/Driver/mysqli.php
   trunk/roundcubemail/program/lib/MDB2/Driver/pgsql.php
   trunk/roundcubemail/program/lib/MDB2/Driver/sqlite.php
   trunk/roundcubemail/program/lib/Mail/mimeDecode.php
   trunk/roundcubemail/program/lib/PEAR.php
Log:
- removed deprecated returning value of new by reference


Modified: trunk/roundcubemail/program/lib/MDB2/Driver/mssql.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2/Driver/mssql.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2/Driver/mssql.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -911,7 +911,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

Modified: trunk/roundcubemail/program/lib/MDB2/Driver/mysql.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2/Driver/mysql.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2/Driver/mysql.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -1393,7 +1393,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

Modified: trunk/roundcubemail/program/lib/MDB2/Driver/mysqli.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2/Driver/mysqli.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2/Driver/mysqli.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -1409,7 +1409,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

Modified: trunk/roundcubemail/program/lib/MDB2/Driver/pgsql.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2/Driver/pgsql.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2/Driver/pgsql.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -1188,7 +1188,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

Modified: trunk/roundcubemail/program/lib/MDB2/Driver/sqlite.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2/Driver/sqlite.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2/Driver/sqlite.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -949,7 +949,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

Modified: trunk/roundcubemail/program/lib/MDB2.php
===================================================================
--- trunk/roundcubemail/program/lib/MDB2.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/MDB2.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -1926,7 +1926,7 @@
                 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

Modified: trunk/roundcubemail/program/lib/Mail/mimeDecode.php
===================================================================
--- trunk/roundcubemail/program/lib/Mail/mimeDecode.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/Mail/mimeDecode.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -321,7 +321,7 @@
                     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));

Modified: trunk/roundcubemail/program/lib/PEAR.php
===================================================================
--- trunk/roundcubemail/program/lib/PEAR.php	2009-10-13 08:40:21 UTC (rev 3038)
+++ trunk/roundcubemail/program/lib/PEAR.php	2009-10-14 06:55:57 UTC (rev 3039)
@@ -560,10 +560,10 @@
             $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;
         }
     }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list