You can have multiple db connection strings in your settings.php files, e.g.

$db_url['default'] = 'mysql://drupal:drupalpass@localhost/drupal47';
$db_url['second'] = 'mysql://second:secondpass@localhost/second';

But systeminfo throws an error with such configurations:
Warning: parse_url() expects parameter 1 to be string, array given in systeminfo.module on line 87

Extend $db = parse_url($db_url); with an array check and you are fine.

if (is_array($db_url)) {
 $db = parse_url($db_url['default']);
} else {
 $db = parse_url($db_url);
}

This issue also applies to 4.7 version.

Comments

rstamm’s picture

Component: Module system_info » Code
Status: Active » Fixed

Thanks

rstamm’s picture

Status: Fixed » Closed (fixed)