Merged in bugfix/PMCORE-4270 (pull request #8750)

PMCORE-4270 ExecuteQuery throwing Undefined array key 'port'
This commit is contained in:
Julio Cesar Laura Avendaño
2024-01-18 15:56:46 +00:00

View File

@@ -316,12 +316,12 @@ class Creole {
}
// some values can be copied directly
$parsed['phptype'] = @$info['scheme'];
$parsed['username'] = @$info['user'];
$parsed['password'] = @$info['pass'];
$parsed['port'] = @$info['port'];
$parsed['phptype'] = $info['scheme'] ?? '';
$parsed['username'] = $info['user'] ?? '';
$parsed['password'] = $info['pass'] ?? '';
$parsed['port'] = $info['port'] ?? '';
$host = @$info['host'];
$host = $info['host'] ?? '';
if (false !== ($pluspos = strpos($host, '+'))) {
$parsed['protocol'] = substr($host,0,$pluspos);
if ($parsed['protocol'] === 'unix') {