From a2e83346134c7a197492cb520ad440e0e1aff463 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 1 Oct 2018 19:05:31 +0300 Subject: Allocate only necessary space for static properties of internal classes in ZTS mode. --- Zend/zend.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Zend/zend.h') 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() -- cgit v1.2.1