diff options
Diffstat (limited to 'Zend/zend_gc.c')
-rw-r--r-- | Zend/zend_gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c index a848e8eb58..b331f979fd 100644 --- a/Zend/zend_gc.c +++ b/Zend/zend_gc.c @@ -26,7 +26,7 @@ #define GC_ROOT_BUFFER_MAX_ENTRIES 10001 #ifdef ZTS -TSRMG_D(zend_gc_globals, gc_globals_id); +ZEND_API int gc_globals_id; #else ZEND_API zend_gc_globals gc_globals; #endif @@ -82,7 +82,7 @@ static void gc_globals_ctor_ex(zend_gc_globals *gc_globals TSRMLS_DC) ZEND_API void gc_globals_ctor(TSRMLS_D) { #ifdef ZTS - TSRMG_ALLOCATE(gc_globals_id, sizeof(zend_gc_globals), (ts_allocate_ctor) gc_globals_ctor_ex, (ts_allocate_dtor) root_buffer_dtor); + ts_allocate_id(&gc_globals_id, sizeof(zend_gc_globals), (ts_allocate_ctor) gc_globals_ctor_ex, (ts_allocate_dtor) root_buffer_dtor); #else gc_globals_ctor_ex(&gc_globals); #endif |