mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
I think this should've been changed as well, right?
This commit is contained in:
parent
c6633698b4
commit
2265b5b4c5
@ -218,14 +218,14 @@ class DB
|
||||
}
|
||||
|
||||
if (is_array($options)) {
|
||||
foreach ($persistent as $option => $value) {
|
||||
foreach ($options as $option => $value) {
|
||||
$test = $obj->setOption($option, $value);
|
||||
if (DB::isError($test)) {
|
||||
return $test;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$obj->setOption('persistent', $persistent);
|
||||
$obj->setOption('persistent', $options);
|
||||
}
|
||||
$err = $obj->connect($dsninfo, $obj->getOption('persistent'));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user