From 353dcc835fee5acf2aeefda28a5f50f9a75b3f28 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 30 Jun 2000 19:20:03 +0000 Subject: [PATCH] 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. --- pear/DB.php | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.50.1