1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00

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
+2 -1
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;