cvs: pear /DB DB.php package.xml

From: Date: Wed, 01 Mar 2006 23:33:36 +0000
Subject: cvs: pear /DB DB.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38820@lists.php.net to get a copy of this message
lsmith Wed Mar 1 23:33:36 2006 UTC Modified files: /pear/DB DB.php package.xml Log: - added ability to specify port number when using unix sockets in DB::parseDSN() (bug #5982) http://cvs.php.net/viewcvs.cgi/pear/DB/DB.php?r1=1.80&r2=1.81&diff_format=u Index: pear/DB/DB.php diff -u pear/DB/DB.php:1.80 pear/DB/DB.php:1.81 --- pear/DB/DB.php:1.80 Wed Feb 16 02:16:00 2005 +++ pear/DB/DB.php Wed Mar 1 23:33:36 2006 @@ -20,7 +20,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DB.php,v 1.80 2005/02/16 02:16:00 danielc Exp $ + * @version CVS: $Id: DB.php,v 1.81 2006/03/01 23:33:36 lsmith Exp $ * @link http://pear.php.net/package/DB */ @@ -808,13 +808,11 @@ // process the different protocol options $parsed['protocol'] = (!empty($proto)) ? $proto : 'tcp'; $proto_opts = rawurldecode($proto_opts); + if (strpos($proto_opts, ':') !== false) { + list($proto_opts, $parsed['port']) = explode(':', $proto_opts); + } if ($parsed['protocol'] == 'tcp') { - if (strpos($proto_opts, ':') !== false) { - list($parsed['hostspec'], - $parsed['port']) = explode(':', $proto_opts); - } else { - $parsed['hostspec'] = $proto_opts; - } + $parsed['hostspec'] = $proto_opts; } elseif ($parsed['protocol'] == 'unix') { $parsed['socket'] = $proto_opts; } http://cvs.php.net/viewcvs.cgi/pear/DB/package.xml?r1=1.193&r2=1.194&diff_format=u Index: pear/DB/package.xml diff -u pear/DB/package.xml:1.193 pear/DB/package.xml:1.194 --- pear/DB/package.xml:1.193 Wed Mar 1 23:21:29 2006 +++ pear/DB/package.xml Wed Mar 1 23:33:36 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.193 2006/03/01 23:21:29 lsmith Exp $ --> + <!-- $Id: package.xml,v 1.194 2006/03/01 23:33:36 lsmith Exp $ --> <name>DB</name> <summary>Database Abstraction Layer</summary> <description> @@ -70,6 +70,10 @@ <state>stable</state> <date>pending</date> <notes><![CDATA[ +DB: +* added ability to specify port number when using unix sockets in DB::parseDSN() + Bug 5982 + odbc(access): * Tweak quoteSmart() to allows MS Access to wrap dates in #'s. Bug 4813.

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