jon             Fri Mar  9 22:04:15 2001 EDT

  Modified files:              
    /php4/pear/DB       pgsql.php 
  Log:
  Make the #options, $tty, and $port parameters optional.
  
  
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.30 php4/pear/DB/pgsql.php:1.31
--- php4/pear/DB/pgsql.php:1.30 Mon Feb 19 04:22:26 2001
+++ php4/pear/DB/pgsql.php      Fri Mar  9 22:04:14 2001
@@ -97,9 +97,9 @@
         $user = $dsninfo['username'];
         $pw = $dsninfo['password'];
         $dbname = $dsninfo['database'];
-        $options = $dsninfo['options'];
-        $tty = $dsninfo['tty'];
-        $port = $dsninfo['port'] ? $dsninfo['port'] : '5432';
+        $options = (!empty($dsninfo['options'])) ? $dsninfo['options'] : NULL;
+        $tty = (!empty($dsninfo['tty'])) ? $dsninfo['tty'] : NULL;
+        $port = (!empty($dsninfo['port'])) ? $dsninfo['port'] : '5432';
 
         $connect_function = $persistent ? 'pg_pconnect' : 'pg_connect';
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to