mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58: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);
|
||||
}
|
||||
$type = $dsninfo["phptype"];
|
||||
|
||||
|
||||
@include_once "DB/${type}.php";
|
||||
$classname = "DB_${type}";
|
||||
@$obj =& new $classname;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue