Skip to content

Commit

Permalink
bug #12358: restore PHP4 compatibility (reference and "new")
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@245308 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
quipo committed Oct 31, 2007
1 parent 345f99b commit 5448c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MDB2.php
Expand Up @@ -387,7 +387,7 @@ function &factory($dsn, $options = false)
return $err;
}

$db = new $class_name();
$db =& new $class_name();
$db->setDSN($dsninfo);
$err = MDB2::setOptions($db, $options);
if (PEAR::isError($err)) {
Expand Down

0 comments on commit 5448c13

Please sign in to comment.