diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2001-02-02 05:24:31 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2001-02-02 05:24:31 +0000 |
commit | 38fae9bae4a470d0764adc968c860b4244fd317e (patch) | |
tree | d21322de210b6ab623f3d91f18f7fd246f913c70 | |
parent | f4f20f5bb11de0100e376f562eece4cec051d674 (diff) | |
download | php-git-38fae9bae4a470d0764adc968c860b4244fd317e.tar.gz |
make sure to include subclasses before trying to instantiate them.
-rw-r--r-- | pear/DB.php | 3 |
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; |