diff --git a/Zend/zend.c b/Zend/zend.c index e5df93f0460..d9a99eabc49 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -41,8 +41,8 @@ FILE *(*zend_fopen)(const char *filename); void (*zend_block_interruptions)(); void (*zend_unblock_interruptions)(); #ifdef ZTS -int compiler_globals_id; -int executor_globals_id; +ZEND_API int compiler_globals_id; +ZEND_API int executor_globals_id; int alloc_globals_id; HashTable *global_function_table; HashTable *global_class_table; diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h index 621d45879d8..644e7e3d438 100644 --- a/Zend/zend_globals.h +++ b/Zend/zend_globals.h @@ -35,8 +35,8 @@ class ZendFlexLexer; #endif BEGIN_EXTERN_C() -extern int compiler_globals_id; -extern int executor_globals_id; +ZEND_API extern int compiler_globals_id; +ZEND_API extern int executor_globals_id; extern int alloc_globals_id; END_EXTERN_C()