diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-10-01 19:05:31 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-10-01 19:05:31 +0300 |
commit | a2e83346134c7a197492cb520ad440e0e1aff463 (patch) | |
tree | 82e98f145137a2877254fbe1836bf9753accf37e /Zend/zend_object_handlers.c | |
parent | 250b577258ba9a736a15527f211ba52c9368d322 (diff) | |
download | php-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.c | 2 |
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 |