summaryrefslogtreecommitdiff
path: root/ext/oracle/oracle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r--ext/oracle/oracle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c
index 3ea87d3dc8..37651537f3 100644
--- a/ext/oracle/oracle.c
+++ b/ext/oracle/oracle.c
@@ -286,7 +286,7 @@ static void php_close_ora_cursor(zend_rsrc_list_entry *rsrc)
/* {{{ php_ora_init_globals
*/
-static void php_ora_init_globals(ORALS_D)
+static void php_ora_init_globals(ORALS_D TSRMLS_DC)
{
if (cfg_get_long("oracle.allow_persistent",
&ORA(allow_persistent))
@@ -319,9 +319,9 @@ PHP_MINIT_FUNCTION(oracle)
{
#ifdef ZTS
- ora_globals_id = ts_allocate_id(sizeof(php_ora_globals), (ts_allocate_ctor) php_ora_init_globals, NULL);
+ ts_allocate_id(&ora_globals_id, sizeof(php_ora_globals), (ts_allocate_ctor) php_ora_init_globals, NULL);
#else
- php_ora_init_globals(ORALS_C);
+ php_ora_init_globals(ORALS_C TSRMLS_CC);
#endif
le_cursor = zend_register_list_destructors_ex(php_close_ora_cursor, NULL, "oracle cursor", module_number);
@@ -1742,7 +1742,7 @@ int ora_set_param_values(oraCursor *cursor, int isout)
pval **pdata;
int i, len, plen;
- ELS_FETCH();
+ TSRMLS_FETCH();
zend_hash_internal_pointer_reset(cursor->params);