Merged in bugfix/HOR-2874 (pull request #5544)

HOR-2874

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
dheeyi william
2017-03-16 21:43:15 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -309,7 +309,11 @@ class Creole {
);
$info = parse_url($dsn);
$info['pass'] = urldecode($info['pass']);
if (!is_null($dsn)) {
$info['pass'] = urldecode($info['pass']);
}
if (count($info) === 1) { // if there's only one element in result, then it must be the phptype
$parsed['phptype'] = array_pop($info);
return $parsed;