summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-31 04:53:54 +0000
committerZeev Suraski <zeev@php.net>2001-07-31 04:53:54 +0000
commitd76cf1da183f79711d7699a2ff85f743da3f9dd2 (patch)
tree8342fd3406696bc32b81deb28d6771336fb6fe36 /ext/odbc
parent7bc71f442d7ddfecf43871b394c14100baa391b3 (diff)
downloadphp-git-d76cf1da183f79711d7699a2ff85f743da3f9dd2.tar.gz
More TSRMLS_FETCH work
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 390b0eff60..82c2af0569 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -644,9 +644,8 @@ void odbc_transact(INTERNAL_FUNCTION_PARAMETERS, int type)
RETURN_TRUE;
}
-static int _close_pconn_with_id(list_entry *le, int *id)
+static int _close_pconn_with_id(list_entry *le, int *id TSRMLS_DC)
{
-
if(le->type == le_pconn && (((odbc_connection *)(le->ptr))->id == *id)){
return 1;
}else{
@@ -733,7 +732,7 @@ PHP_FUNCTION(odbc_close_all)
zend_list_delete(i);
/* Delete the persistent connection */
zend_hash_apply_with_argument(&EG(persistent_list),
- (int (*)(void *, void *)) _close_pconn_with_id, (void *) &i);
+ (apply_func_arg_t) _close_pconn_with_id, (void *) &i TSRMLS_CC);
}
}
}
@@ -2222,7 +2221,7 @@ PHP_FUNCTION(odbc_close)
if(is_pconn){
zend_hash_apply_with_argument(&EG(persistent_list),
- (int (*)(void *, void *)) _close_pconn_with_id, (void *) &((*pv_conn)->value.lval));
+ (apply_func_arg_t) _close_pconn_with_id, (void *) &((*pv_conn)->value.lval) TSRMLS_CC);
}
}
/* }}} */