Remove one deprecated usage in 5.3 of "... =& new ...". Please, report any other...
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 14:52:37 +0000 (15:52 +0100)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 14:52:37 +0000 (15:52 +0100)
Objects are manipulaed throught alias (not refs) anyway which, are not a copy of the object itself in php5. See:
- php.net/manual/en/language.oop5.references.php
- php.net/manual/en/migration53.deprecated.php

classes/Misc.php

index ab6d27017e2e3f617d66a0755b21b496e74fbabc..62067bb7bfe8a5d670caa49373770c60530b0523 100644 (file)
                        // Create a database wrapper class for easy manipulation of the
                        // connection.
                        include_once('./classes/database/' . $_type . '.php');
-                       $data =& new $_type($_connection->conn);
+                       $data = new $_type($_connection->conn);
                        $data->platform = $_connection->platform;
 
                        return $data;