make sure to include subclasses before trying to instantiate them.

This commit is contained in:
Chuck Hagenbuch 2001-02-02 05:24:31 +00:00
parent f4f20f5bb1
commit 38fae9bae4

View File

@ -208,7 +208,8 @@ class DB
$dsninfo = DB::parseDSN($dsn);
}
$type = $dsninfo["phptype"];
@include_once "DB/${type}.php";
$classname = "DB_${type}";
@$obj =& new $classname;