cvs: php4 /ext/informix ifx.ec
| From: | Danny Heijl | Date: | Sat, 12 Aug 2000 12:03:39 +0000 |
| Subject: | cvs: php4 /ext/informix ifx.ec | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1156@lists.php.net to get a copy of this message | ||
danny Sat Aug 12 05:03:39 2000 EDT
Modified files:
/php4/ext/informix ifx.ec
Log:
- The destructor for a connection resource closed the current
connection if the connection had been closed before (danny)
Index: php4/ext/informix/ifx.ec
diff -u php4/ext/informix/ifx.ec:1.46 php4/ext/informix/ifx.ec:1.47
--- php4/ext/informix/ifx.ec:1.46 Fri Aug 11 09:37:46 2000
+++ php4/ext/informix/ifx.ec Sat Aug 12 05:03:39 2000
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ifx.ec,v 1.46 2000/08/11 16:37:46 danny Exp $ */
+/* $Id: ifx.ec,v 1.47 2000/08/12 12:03:39 danny Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
@@ -284,8 +284,10 @@
IFXLS_FETCH();
EXEC SQL SET CONNECTION :link;
- EXEC SQL close database;
- EXEC SQL DISCONNECT CURRENT;
+ if (ifx_check() >= 0) {
+ EXEC SQL close database;
+ EXEC SQL DISCONNECT CURRENT;
+ }
efree(link);
IFXG(num_links)--;
}
@@ -299,9 +301,10 @@
IFXLS_FETCH();
EXEC SQL SET CONNECTION :link;
- EXEC SQL close database;
- EXEC SQL DISCONNECT CURRENT;
-
+ if (ifx_check() >= 0) {
+ EXEC SQL close database;
+ EXEC SQL DISCONNECT CURRENT;
+ }
free(link);
IFXG(num_persistent)--;
IFXG(num_links)--;