Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
#6760 #6787 - simplified getConnectionString logic (direct return v…
Browse files Browse the repository at this point in the history
…alue)
  • Loading branch information
Ocramius committed Dec 31, 2014
1 parent 314db7f commit 0a60dfd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/Zend/Db/Adapter/Driver/Pgsql/Connection.php
Expand Up @@ -321,10 +321,6 @@ private function getConnectionString()
$connection['port'] = (isset($p['port'])) ? (int) $p['port'] : null;
$connection['socket'] = (isset($p['socket'])) ? $p['socket'] : null;

$connection = array_filter($connection); // remove nulls
$connection = http_build_query($connection, null, ' '); // @link http://php.net/pg_connect
$connection = urldecode($connection); // @link http://php.net/manual/en/function.urldecode.php

return $connection;
return urldecode(http_build_query(array_filter($connection), null, ' '));
}
}

0 comments on commit 0a60dfd

Please sign in to comment.