Browse Source

DB::parseDSN() now checks the value it is passed, and if it is already an

array, returns it. This lets you pass arrays to the connect functions and
they'll work transparently.
PHP-4.0.5
Chuck Hagenbuch 26 years ago
parent
commit
353dcc835f
  1. 3
      pear/DB.php

3
pear/DB.php

@ -330,6 +330,9 @@ class DB {
* @return bool FALSE is returned on error
*/
function parseDSN($dsn) {
if (is_array($dsn))
return $dsn;
$parsed = array(
'phptype' => false,
'dbsyntax' => false,

Loading…
Cancel
Save