#ifdef ZTS
ZEND_API int compiler_globals_id;
ZEND_API int executor_globals_id;
-int alloc_globals_id;
+ZEND_API int alloc_globals_id;
HashTable *global_function_table;
HashTable *global_class_table;
HashTable *global_constants_table;
#endif
#ifndef ZTS
-zend_alloc_globals alloc_globals;
+ZEND_API zend_alloc_globals alloc_globals;
#endif
# define RECORD_ZVAL_CACHE_MISS(fc_type)
#endif
-#ifndef ZTS
-extern zend_alloc_globals alloc_globals;
-#endif
#define ZEND_FAST_ALLOC(p, type, fc_type) \
{ \
BEGIN_EXTERN_C()
ZEND_API extern int compiler_globals_id;
ZEND_API extern int executor_globals_id;
-extern int alloc_globals_id;
+ZEND_API extern int alloc_globals_id;
END_EXTERN_C()
#endif
# define ALS_CC
# define AG(v) (alloc_globals.v)
# define ALS_FETCH()
+extern ZEND_API zend_alloc_globals alloc_globals;
#endif
#endif /* _ZEND_GLOBALS_MACROS_H */