diff options
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/php_odbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index a4d24ed27a..a763cb8776 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -348,7 +348,7 @@ PHP_INI_BEGIN() PHP_INI_END() #ifdef ZTS -static void php_odbc_init_globals(php_odbc_globals *odbc_globals) +static void php_odbc_init_globals(php_odbc_globals *odbc_globals TSRMLS_DC) { ODBCG(num_persistent) = 0; } @@ -363,7 +363,7 @@ PHP_MINIT_FUNCTION(odbc) #endif #ifdef ZTS - odbc_globals_id = ts_allocate_id(sizeof(php_odbc_globals), php_odbc_init_globals, NULL); + ts_allocate_id(&odbc_globals_id, sizeof(php_odbc_globals), php_odbc_init_globals, NULL); odbc_globals = ts_resource(odbc_globals_id); #else ODBCG(num_persistent) = 0; |