From d76cf1da183f79711d7699a2ff85f743da3f9dd2 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 31 Jul 2001 04:53:54 +0000 Subject: More TSRMLS_FETCH work --- ext/odbc/php_odbc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/odbc/php_odbc.c') 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); } } /* }}} */ -- cgit v1.2.1