summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-12-01 11:48:17 +0000
committerDmitry Stogov <dmitry@php.net>2005-12-01 11:48:17 +0000
commit8768ab94b38f96e540995f31ce17bb4e1e4210f8 (patch)
tree90a1d85b08b8af63a74fdf8c20224fd89d85aa18 /Zend/zend_API.h
parent673dc5ee5f1f96439b2bf540df3968c31248ca4e (diff)
downloadphp-git-8768ab94b38f96e540995f31ce17bb4e1e4210f8.tar.gz
Fixed bug #34729 (Crash in ZTS mode under Apache)
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index ef4156430e..d30d7f7499 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -146,6 +146,12 @@ typedef struct _zend_function_entry {
#define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
+#ifdef ZTS
+# define CE_STATIC_MEMBERS(ce) (((ce)->type==ZEND_USER_CLASS)?(ce)->static_members:CG(static_members)[(long)(ce)->static_members])
+#else
+# define CE_STATIC_MEMBERS(ce) ((ce)->static_members)
+#endif
+
int zend_next_free_module(void);
BEGIN_EXTERN_C()