diff options
-rw-r--r-- | ext/opcache/zend_accelerator_util_funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_accelerator_util_funcs.c b/ext/opcache/zend_accelerator_util_funcs.c index a91a2e80e7..e609421648 100644 --- a/ext/opcache/zend_accelerator_util_funcs.c +++ b/ext/opcache/zend_accelerator_util_funcs.c @@ -369,7 +369,7 @@ static void zend_class_copy_ctor(zend_class_entry **pce) zend_class_entry *parent = ce->parent; ce->default_static_members_table = emalloc(sizeof(zval) * old_ce->default_static_members_count); - i = ce->default_static_members_count; + i = ce->default_static_members_count - 1; /* Copy static properties in this class */ end = parent ? parent->default_static_members_count : 0; |