yohgaki         Sun Oct 13 05:41:36 2002 EDT

  Modified files:              
    /php4/ext/pgsql     pgsql.c 
  Log:
  Need to init connstring when there are 2 args.
  
  
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.233 php4/ext/pgsql/pgsql.c:1.234
--- php4/ext/pgsql/pgsql.c:1.233        Sun Oct 13 05:37:27 2002
+++ php4/ext/pgsql/pgsql.c      Sun Oct 13 05:41:35 2002
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.233 2002/10/13 09:37:27 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.234 2002/10/13 09:41:35 yohgaki Exp $ */
 
 #include <stdlib.h>
 
@@ -511,6 +511,7 @@
        if (ZEND_NUM_ARGS() == 1) { /* new style, using connection string */
                connstring = Z_STRVAL_PP(args[0]);
        } else if (ZEND_NUM_ARGS() == 2 ) { /* Safe to add conntype_option, since 2 
args was illegal */
+               connstring = Z_STRVAL_PP(args[0]);
                convert_to_long_ex(args[1]);
                connect_type = Z_LVAL_PP(args[1]);
        } else {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to