cvs: pear /DB/DB pgsql.php

From: Date: Wed, 24 Jul 2002 11:13:59 +0000
Subject: cvs: pear /DB/DB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5320@lists.php.net to get a copy of this message
edink Wed Jul 24 07:13:59 2002 EDT Modified files: /pear/DB/DB pgsql.php Log: Merge from PHP_4_2_0 branch (1.65.2.3). Fixed postgres connect string generation when no host is specified. Index: pear/DB/DB/pgsql.php diff -u pear/DB/DB/pgsql.php:1.5 pear/DB/DB/pgsql.php:1.6 --- pear/DB/DB/pgsql.php:1.5 Thu May 9 08:29:53 2002 +++ pear/DB/DB/pgsql.php Wed Jul 24 07:13:59 2002 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.5 2002/05/09 12:29:53 ssb Exp $ +// $Id: pgsql.php,v 1.6 2002/07/24 11:13:59 edink Exp $ // // Database independent query interface definition for PHP's PostgreSQL // extension. @@ -88,7 +88,9 @@ $connstr = ''; if ($protocol == 'tcp') { - $connstr = 'host=' . $dsninfo['hostspec']; + if ($dsninfo['hostspec']) { + $connstr = 'host=' . $dsninfo['hostspec']; + } if (!empty($dsninfo['port'])) { $connstr .= ' port=' . $dsninfo['port']; }

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