Re: Problems with DB in 4.2.0

From: Date: Tue, 09 Apr 2002 21:00:59 +0000
Subject: Re: Problems with DB in 4.2.0
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5285@lists.php.net to get a copy of this message
Any objections to commiting this fix to HEAD and MFHing into the release branch? Index: pgsql.php =================================================================== RCS file: /repository/php4/pear/DB/pgsql.php,v retrieving revision 1.66 diff -u -3 -p -r1.66 pgsql.php --- pgsql.php 12 Mar 2002 22:42:13 -0000 1.66 +++ pgsql.php 9 Apr 2002 20:59:36 -0000 @@ -88,7 +88,9 @@ class DB_pgsql extends DB_common $connstr = ''; if ($protocol == 'tcp') { - $connstr = 'host=' . $dsninfo['hostspec']; + if ($dsninfo['hostspec']) { + $connstr = 'host=' . $dsninfo['hostspec']; + } if ($dsninfo['port']) { $connstr .= ' port=' . $dsninfo['port']; }

« previous php.pear.dev (#5285) next »