[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] cvs: pear /MDB2 MDB2.php
From:       "Lorenzo Alberton" <quipo () php ! net>
Date:       2007-10-31 18:18:50
Message-ID: cvsquipo1193854730 () cvsserver
[Download RAW message or body]

quipo		Wed Oct 31 18:18:50 2007 UTC

  Modified files:              
    /pear/MDB2	MDB2.php 
  Log:
  bug #12358: restore PHP4 compatibility (reference and "new")
  
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.303&r2=1.304&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.303 pear/MDB2/MDB2.php:1.304
--- pear/MDB2/MDB2.php:1.303	Sun Oct 28 20:11:49 2007
+++ pear/MDB2/MDB2.php	Wed Oct 31 18:18:49 2007
@@ -43,7 +43,7 @@
 // | Author: Lukas Smith <smith@pooteeweet.org>                           |
 // +----------------------------------------------------------------------+
 //
-// $Id: MDB2.php,v 1.303 2007/10/28 20:11:49 quipo Exp $
+// $Id: MDB2.php,v 1.304 2007/10/31 18:18:49 quipo Exp $
 //
 
 /**
@@ -387,7 +387,7 @@
             return $err;
         }
 
-        $db = new $class_name();
+        $db =& new $class_name();
         $db->setDSN($dsninfo);
         $err = MDB2::setOptions($db, $options);
         if (PEAR::isError($err)) {

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic