diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2000-06-30 19:20:03 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2000-06-30 19:20:03 +0000 |
commit | 353dcc835fee5acf2aeefda28a5f50f9a75b3f28 (patch) | |
tree | 197e1ca97f074c6bd5dd0c9a9d638cec4f3ca0fe /pear | |
parent | aa83dde27bde191011a5d8d38e7ff88909dd6482 (diff) | |
download | php-git-353dcc835fee5acf2aeefda28a5f50f9a75b3f28.tar.gz |
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.
Diffstat (limited to 'pear')
-rw-r--r-- | pear/DB.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/DB.php b/pear/DB.php index 2cc8016acc..be6ccd4a6d 100644 --- a/pear/DB.php +++ b/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, |