mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
make sure to include subclasses before trying to instantiate them.
This commit is contained in:
parent
f4f20f5bb1
commit
38fae9bae4
@ -208,7 +208,8 @@ class DB
|
||||
$dsninfo = DB::parseDSN($dsn);
|
||||
}
|
||||
$type = $dsninfo["phptype"];
|
||||
|
||||
|
||||
@include_once "DB/${type}.php";
|
||||
$classname = "DB_${type}";
|
||||
@$obj =& new $classname;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user