romolo          Sat Mar 24 10:36:43 2001 EDT

  Modified files:              
    /php4/ext/pgsql     pgsql.c 
  Log:
  
  Solved bugs #9746 and #9937, pg_close was closing twice the default conn.
  
  
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.93 php4/ext/pgsql/pgsql.c:1.94
--- php4/ext/pgsql/pgsql.c:1.93 Sun Feb 25 22:07:12 2001
+++ php4/ext/pgsql/pgsql.c      Sat Mar 24 10:36:43 2001
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.93 2001/02/26 06:07:12 andi Exp $ */
+/* $Id: pgsql.c,v 1.94 2001/03/24 18:36:43 romolo Exp $ */
 
 #include <stdlib.h>
 
@@ -531,7 +531,8 @@
 
        if (id!=-1 
                || (pgsql_link && Z_RESVAL_PP(pgsql_link)==PGG(default_link))) {
-               zend_list_delete(PGG(default_link));
+               if (id!=-1)
+                       zend_list_delete(PGG(default_link));
                PGG(default_link) = -1;
        }
 



-- 
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