chagenbu Thu Feb 1 21:24:32 2001 EDT
Modified files:
/php4/pear DB.php
Log:
make sure to include subclasses before trying to instantiate them.
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.45 php4/pear/DB.php:1.46
--- php4/pear/DB.php:1.45 Tue Jan 30 00:34:55 2001
+++ php4/pear/DB.php Thu Feb 1 21:24:31 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.45 2001/01/30 08:34:55 ssb Exp $
+// $Id: DB.php,v 1.46 2001/02/02 05:24:31 chagenbu Exp $
//
// Database independent query interface.
//
@@ -208,7 +208,8 @@
$dsninfo = DB::parseDSN($dsn);
}
$type = $dsninfo["phptype"];
-
+
+ @include_once "DB/${type}.php";
$classname = "DB_${type}";
@$obj =& new $classname;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]