CVS update: php3/functions
| From: | thies | Date: | Sat, 29 May 1999 10:37:09 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6240@lists.php.net to get a copy of this message | ||
Date: Saturday May 29, 1999 @ 6:37
Author: thies
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv1411/functions
Modified Files:
oci8.c
Log Message:
fixed shutting down of statement-handles on ocilogoff
Index: php3/functions/oci8.c
diff -u php3/functions/oci8.c:1.104 php3/functions/oci8.c:1.105
--- php3/functions/oci8.c:1.104 Fri May 28 03:50:53 1999
+++ php3/functions/oci8.c Sat May 29 06:37:09 1999
@@ -33,7 +33,7 @@
#define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */
-/* $Id: oci8.c,v 1.104 1999/05/28 07:50:53 thies Exp $ */
+/* $Id: oci8.c,v 1.105 1999/05/29 10:37:09 thies Exp $ */
/* TODO list:
*
@@ -508,6 +508,22 @@
return SUCCESS;
}
+static int _stmt_cleanup(list_entry *le)
+{
+ oci8_statement *statement;
+ OCI8_TLS_VARS;
+
+ if (le->type == OCI8_GLOBAL(php3_oci8_module).le_stmt) {
+ statement = (oci8_statement *) le->ptr;
+
+ if (!statement->conn->open) {
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
static int _user_cleanup(oci8_session *session)
{
if (session->persistent)
@@ -3280,6 +3296,10 @@
oci8_debug("OCILogoff: connection not found...");
RETURN_FALSE;
}
+
+ connection->open = 0;
+
+ _php3_hash_apply(list,(int (*)(void *))_stmt_cleanup);
if (php3_list_delete(index) == SUCCESS) {
RETURN_TRUE;
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net