From e06a1ed265bc8141bf5cfab96753db7d21df2d9f Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 24 Apr 1999 16:16:11 +0000 Subject: [PATCH] Thread safety fixes --- Zend/zend.c | 4 ++-- Zend/zend_globals.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Zend/zend.c b/Zend/zend.c index e5df93f046..d9a99eabc4 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 621d45879d..644e7e3d43 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() -- 2.50.1