]> granicus.if.org Git - php/commitdiff
This should enable people to use ALLOC_ZVAL() in code outside the php4.dll
authorZeev Suraski <zeev@php.net>
Thu, 30 Dec 1999 05:25:44 +0000 (05:25 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 30 Dec 1999 05:25:44 +0000 (05:25 +0000)
Zend/zend.c
Zend/zend_alloc.c
Zend/zend_fast_cache.h
Zend/zend_globals.h
Zend/zend_globals_macros.h

index 46967700ee33774135499892ce6a5d545aa7a407..2aa5cbb0d1db90ff39d69f98cd635c9860c776f5 100644 (file)
@@ -52,7 +52,7 @@ ZEND_API int (*zend_get_ini_entry)(char *name, uint name_length, zval *contents)
 #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;
index 4fc580c73e95f0fb40ccd527481dd15cd6a130b7..7b41548978414491cf3fb760865294dc49a2dbc4 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 
 #ifndef ZTS
-zend_alloc_globals alloc_globals;
+ZEND_API zend_alloc_globals alloc_globals;
 #endif
 
 
index f487d360c51274741fe4692a1503a2edb4c7ee97..660ec9df80de2825a252a6be45a803087e9fe079 100644 (file)
@@ -51,9 +51,6 @@ typedef struct _zend_fast_cache_list_entry {
 # 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)                                                              \
        {                                                                                                                               \
index 8ae06f263c062a1bfc1aacb1df22e3759b70bbce..aecd3778c7fef434a5ba280b274fccc2f134fb27 100644 (file)
@@ -45,7 +45,7 @@ class ZendFlexLexer;
 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
index 75be8f27e23888c57d218ecc4b5fd5ff8a0bbab5..02ef168e8f5e1cb1e60ffdfb816fcb260ad0d2bd 100644 (file)
@@ -82,6 +82,7 @@ extern ZEND_API zend_executor_globals executor_globals;
 # 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 */