]> granicus.if.org Git - php/commitdiff
* fix handling of broken DSNs like Colin suggested
authorStig Bakken <ssb@php.net>
Wed, 18 Apr 2001 23:03:18 +0000 (23:03 +0000)
committerStig Bakken <ssb@php.net>
Wed, 18 Apr 2001 23:03:18 +0000 (23:03 +0000)
pear/DB.php

index 8dce9080e729010763c2e7a5d16aa6096f73dbc9..b35f51adbebf7923e38d7052a8e1b516a22005ca 100644 (file)
@@ -425,7 +425,7 @@ class DB
 
         // Get phptype and dbsyntax
         // $str => phptype(dbsyntax)
-        if (preg_match('|^([^(]+)\(([^(]*)\)$|', $str, $arr)) {
+        if (preg_match('|^(.+?)\((.*?)\)$|', $str, $arr)) {
             $parsed['phptype'] = $arr[1];
             $parsed['dbsyntax'] = (empty($arr[2])) ? $arr[1] : $arr[2];
         } else {