CVS update: php3/functions

From: Date: Wed, 07 Apr 1999 20:11:57 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4982@lists.php.net to get a copy of this message
Date: Wednesday April 7, 1999 @ 16:11 Author: thies Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv862/functions Modified Files: oci8.c Log Message: fixed a few "dd"'s to much... Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.75 php3/functions/oci8.c:1.76 *** php3/functions/oci8.c:1.75 Wed Apr 7 12:30:00 1999 --- php3/functions/oci8.c Wed Apr 7 16:11:57 1999 *************** *** 33,39 **** #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ ! /* $Id: oci8.c,v 1.75 1999/04/07 16:30:00 thies Exp $ */ /* TODO list: * --- 33,39 ---- #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ ! /* $Id: oci8.c,v 1.76 1999/04/07 20:11:57 thies Exp $ */ /* TODO list: * *************** *** 154,159 **** --- 154,160 ---- static void _oci8_free_column(oci8_out_column *column); static void _oci8_detach(oci8_server *server); static void _oci8_logoff(oci8_session *session); + static void _oci8_free_descr(oci8_descriptor *descr); static oci8_connection *oci8_get_conn(int, const char *, HashTable *, HashTable *); static oci8_statement *oci8_get_stmt(int, const char *, HashTable *); *************** *** 1688,1693 **** --- 1689,1707 ---- } /* }}} */ + /* {{{ _oci8_free_descr() + */ + + static void + _oci8_free_descr(oci8_descriptor *descr) + { + OCI8_TLS_VARS; + + oci8_debug("oci8_free_descr: %x",descr->ocidescr); + + OCIDescriptorFree(descr->ocidescr, descr->type); + } + /* }}} */ /* {{{ oci8_attach() */ static oci8_server *oci8_attach(char *dbname,int persistent,HashTable *list, HashTable *plist) *************** *** 1921,1926 **** --- 1935,1945 ---- } connection->id = php3_list_insert(connection, OCI8_GLOBAL(php3_oci8_module).le_conn); + connection->descriptors = emalloc(sizeof(HashTable)); + if (!connection->descriptors || + _php3_hash_init(connection->descriptors, 13, NULL,(void (*)(void *))_oci8_free_descr, 0) == FAILURE) { + goto CLEANUP; + } oci8_debug("oci8_do_connect: id=%d",connection->id); -- 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

« previous php.dev (#4982) next »