cvs: php4 /pear DB.php

From: Date: Wed, 18 Apr 2001 23:03:18 +0000
Subject: cvs: php4 /pear DB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40@lists.php.net to get a copy of this message
ssb Wed Apr 18 16:03:18 2001 EDT Modified files: /php4/pear DB.php Log: * fix handling of broken DSNs like Colin suggested Index: php4/pear/DB.php diff -u php4/pear/DB.php:1.58 php4/pear/DB.php:1.59 --- php4/pear/DB.php:1.58 Mon Apr 16 18:51:26 2001 +++ php4/pear/DB.php Wed Apr 18 16:03:18 2001 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.58 2001/04/17 01:51:26 ssb Exp $ +// $Id: DB.php,v 1.59 2001/04/18 23:03:18 ssb Exp $ // // Database independent query interface. // @@ -425,7 +425,7 @@ // 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 {

« previous php.pear.cvs (#40) next »