mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix off-by-one error
This commit is contained in:
parent
2543e61aed
commit
73f07738b9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue