cvs: php4 /pear/DB ibase.php
| From: | Sterling Hughes | Date: | Fri, 01 Dec 2000 14:58:11 +0000 |
| Subject: | cvs: php4 /pear/DB ibase.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2845@lists.php.net to get a copy of this message | ||
sterling Fri Dec 1 06:58:11 2000 EDT
Modified files:
/php4/pear/DB ibase.php
Log:
Small fix courtesy of Lauri Jesmin
Index: php4/pear/DB/ibase.php
diff -u php4/pear/DB/ibase.php:1.8 php4/pear/DB/ibase.php:1.9
--- php4/pear/DB/ibase.php:1.8 Wed Sep 13 04:27:59 2000
+++ php4/pear/DB/ibase.php Fri Dec 1 06:58:10 2000
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.8 2000/09/13 11:27:59 ssb Exp $
+// $Id: ibase.php,v 1.9 2000/12/01 14:58:10 sterling Exp $
//
// Database independent query interface definition for PHP's Interbase
// extension.
@@ -52,7 +52,9 @@
}
$user = $dsninfo['username'];
$pw = $dsninfo['password'];
- $dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] :
'localhost';
+ $dbhost = $dsninfo['hostspec'] ?
+ ($dsninfo['hostspec'] . ':/' . $dsninfo['database']) :
+ $dsninfo['database'];
$connect_function = $persistent ? 'ibase_pconnect' : 'ibase_connect';
if ($dbhost && $user && $pw) {
$conn = $connect_function($dbhost, $user, $pw);