summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-07-30 15:21:07 +0800
committerXinchen Hui <laruence@php.net>2015-07-30 15:21:07 +0800
commitee64c39f8ed1b136b278bf88e64304c5fd6b6f1a (patch)
tree08d8f0eb3979935b99f1b81e733a4f546460bf1e /Zend/zend_API.h
parentfb3d14460bdaa80a87bb48c1d52784e914f7bbc8 (diff)
parentffa341de59bafd1625076fbe04a4e44b3ea2d692 (diff)
downloadphp-git-ee64c39f8ed1b136b278bf88e64304c5fd6b6f1a.tar.gz
Merge branch 'master' of git.php.net:php-src
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index ee3c8d96a7..8dc3e8a2e8 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -159,6 +159,7 @@ typedef struct _zend_fcall_info_cache {
#define ZEND_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor) \
ts_allocate_id(&module_name##_globals_id, sizeof(zend_##module_name##_globals), (ts_allocate_ctor) globals_ctor, (ts_allocate_dtor) globals_dtor);
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v) ZEND_TSRMG(module_name##_globals_id, zend_##module_name##_globals *, v)
+#define ZEND_MODULE_GLOBALS_BULK(module_name) TSRMG_BULK(module_name##_globals_id, zend_##module_name##_globals *)
#else
@@ -169,6 +170,7 @@ typedef struct _zend_fcall_info_cache {
#define ZEND_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor) \
globals_ctor(&module_name##_globals);
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v) (module_name##_globals.v)
+#define ZEND_MODULE_GLOBALS_BULK(module_name) (&module_name##_globals)
#endif