mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
make sure to include subclasses before trying to instantiate them.
This commit is contained in:
parent
f4f20f5bb1
commit
38fae9bae4
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ class DB
|
||||||
$dsninfo = DB::parseDSN($dsn);
|
$dsninfo = DB::parseDSN($dsn);
|
||||||
}
|
}
|
||||||
$type = $dsninfo["phptype"];
|
$type = $dsninfo["phptype"];
|
||||||
|
|
||||||
|
@include_once "DB/${type}.php";
|
||||||
$classname = "DB_${type}";
|
$classname = "DB_${type}";
|
||||||
@$obj =& new $classname;
|
@$obj =& new $classname;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue