summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-10-01 19:05:31 +0300
committerDmitry Stogov <dmitry@zend.com>2018-10-01 19:05:31 +0300
commita2e83346134c7a197492cb520ad440e0e1aff463 (patch)
tree82e98f145137a2877254fbe1836bf9753accf37e /Zend/zend.h
parent250b577258ba9a736a15527f211ba52c9368d322 (diff)
downloadphp-git-a2e83346134c7a197492cb520ad440e0e1aff463.tar.gz
Allocate only necessary space for static properties of internal classes in ZTS mode.
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 5ab9fdb532..d6d427ccdb 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -127,7 +127,10 @@ struct _zend_class_entry {
int default_static_members_count;
zval *default_properties_table;
zval *default_static_members_table;
- zval *static_members_table;
+ union {
+ zval *static_members_table;
+ zend_uintptr_t static_members_table_idx;
+ };
HashTable function_table;
HashTable properties_info;
HashTable constants_table;
@@ -268,6 +271,8 @@ ZEND_API void zend_activate_modules(void);
ZEND_API void zend_deactivate_modules(void);
ZEND_API void zend_post_deactivate_modules(void);
+void zend_reset_internal_classes(void);
+
ZEND_API void free_estring(char **str_p);
END_EXTERN_C()