summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
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_object_handlers.c
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_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 8703cc44dc..f56913cbe8 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -1355,7 +1355,7 @@ static void zend_intenal_class_init_statics(zend_class_entry *class_type) /* {{{
}
#if ZTS
- CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval) * class_type->default_static_members_count);
+ CG(static_members_table)[class_type->static_members_table_idx] = emalloc(sizeof(zval) * class_type->default_static_members_count);
#else
class_type->static_members_table = emalloc(sizeof(zval) * class_type->default_static_members_count);
#endif