summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Hagenbuch <chagenbu@php.net>2001-02-02 05:24:31 +0000
committerChuck Hagenbuch <chagenbu@php.net>2001-02-02 05:24:31 +0000
commit38fae9bae4a470d0764adc968c860b4244fd317e (patch)
treed21322de210b6ab623f3d91f18f7fd246f913c70
parentf4f20f5bb11de0100e376f562eece4cec051d674 (diff)
downloadphp-git-38fae9bae4a470d0764adc968c860b4244fd317e.tar.gz
make sure to include subclasses before trying to instantiate them.
-rw-r--r--pear/DB.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php
index bf35adbd87..a714950a7b 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -208,7 +208,8 @@ class DB
$dsninfo = DB::parseDSN($dsn);
}
$type = $dsninfo["phptype"];
-
+
+ @include_once "DB/${type}.php";
$classname = "DB_${type}";
@$obj =& new $classname;