cvs: /php4/ext/oci8 oci8.c
| From: | Thies C . Arntzen | Date: | Wed, 29 Sep 1999 13:35:12 +0000 |
| Subject: | cvs: /php4/ext/oci8 oci8.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-5009@lists.php.net to get a copy of this message | ||
thies Wed Sep 29 09:35:12 1999 EDT
Modified files:
/php4/ext/oci8 oci8.c
Log:
just some renaming.
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.28 php4/ext/oci8/oci8.c:1.29
--- php4/ext/oci8/oci8.c:1.28 Tue Sep 28 07:12:32 1999
+++ php4/ext/oci8/oci8.c Wed Sep 29 09:35:12 1999
@@ -22,7 +22,7 @@
#define OCI_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */
-/* $Id: oci8.c,v 1.28 1999/09/28 11:12:32 thies Exp $ */
+/* $Id: oci8.c,v 1.29 1999/09/29 13:35:12 thies Exp $ */
/* TODO list:
*
@@ -110,8 +110,8 @@
/* static int oci_ping(oci_connection *conn); XXX NYI */
static void oci_debug(const char *format,...);
-static void _oci_close_conn(oci_connection *connection);
-static void _oci_free_stmt(oci_statement *statement);
+static void _oci_connection_dtor(oci_connection *connection);
+static void _oci_statement_dtor(oci_statement *statement);
static int _oci_column_dtor(void *data);
static int _oci_descr_dtor(void *data);
@@ -332,8 +332,8 @@
#endif
- le_conn = register_list_destructors(_oci_close_conn, NULL);
- le_stmt = register_list_destructors(_oci_free_stmt, NULL);
+ le_conn = register_list_destructors(_oci_connection_dtor, NULL);
+ le_stmt = register_list_destructors(_oci_statement_dtor, NULL);
INIT_CLASS_ENTRY(oci_lob_class_entry, "OCI-Lob", php_oci_lob_class_functions);
@@ -529,9 +529,7 @@
{
oci_out_column *column = (oci_out_column *) data;
- /*
oci_debug("_oci_column_dtor: %s",column->name);
- */
if (column->data) {
if (column->is_descr) {
@@ -551,16 +549,16 @@
}
/* }}} */
-/* {{{ _oci_free_stmt() */
+/* {{{ _oci_statement_dtor() */
static void
-_oci_free_stmt(oci_statement *statement)
+_oci_statement_dtor(oci_statement *statement)
{
if (! statement) {
return;
}
- oci_debug("_oci_free_stmt: id=%d
last_query=\"%s\"",statement->id,SAFE_STRING(statement->last_query));
+ oci_debug("_oci_statement_dtor: id=%d
last_query=\"%s\"",statement->id,SAFE_STRING(statement->last_query));
if (statement->pStmt) {
OCIHandleFree(statement->pStmt, OCI_HTYPE_STMT);
@@ -595,10 +593,10 @@
}
/* }}} */
-/* {{{ _oci_close_conn() */
+/* {{{ _oci_connection_dtor() */
static void
-_oci_close_conn(oci_connection *connection)
+_oci_connection_dtor(oci_connection *connection)
{
if (! connection) {
return;
@@ -608,7 +606,7 @@
as the connection is "only" a in memory service context we do not disconnect from
oracle.
*/
- oci_debug("_oci_close_conn: id=%d",connection->id);
+ oci_debug("_oci_connection_dtor: id=%d",connection->id);
if (connection->descriptors) {
zend_hash_destroy(connection->descriptors);
@@ -721,7 +719,7 @@
if (connection->open) {
return connection;
} else {
- /* _oci_close_conn(connection); be careful with this!! */
+ /* _oci_connection_dtor(connection); be careful with this!! */
return (oci_connection *)NULL;
}
}
@@ -744,7 +742,7 @@
if (statement->conn->open) {
return statement;
} else {
- /* _oci_free_stmt(statement); be careful with this!! */
+ /* _oci_statement_dtor(statement); be careful with this!! */
return (oci_statement *)NULL;
}
}
@@ -1849,7 +1847,7 @@
{
oci_descriptor *descr = (oci_descriptor *) data;
- oci_debug("oci_free_descr: %x",descr->ocidescr);
+ oci_debug("_oci_descr_dtor: %x",descr->ocidescr);
OCIDescriptorFree(descr->ocidescr, descr->type);
@@ -2153,7 +2151,7 @@
if (connection->id) {
php3_list_delete(connection->id);
} else {
- _oci_close_conn(connection);
+ _oci_connection_dtor(connection);
}
RETURN_FALSE;