cvs: /php4/pear DB.php
| From: | Andrei Zmievski | Date: | Tue, 07 Dec 1999 21:31:09 +0000 |
| Subject: | cvs: /php4/pear DB.php | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7643@lists.php.net to get a copy of this message | ||
andrei Tue Dec 7 16:31:09 1999 EDT
Modified files:
/php4/pear DB.php
Log:
(DB::parseDSN) Remove extraneous / at the end of the spec if no database
is specified.
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.4 php4/pear/DB.php:1.5
--- php4/pear/DB.php:1.4 Wed Dec 1 14:17:48 1999
+++ php4/pear/DB.php Tue Dec 7 16:30:38 1999
@@ -225,6 +225,9 @@
$dsn = $arr[2];
}
+ if (!$parsed['database'])
+ $dsn = preg_replace('|/+$|', '', $dsn);
+
$parsed['hostspec'] = $dsn;
if (!$parsed['dbsyntax']) {