mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Initialize static_members_table
This commit is contained in:
parent
2f51764e5d
commit
60dca2295d
1 changed files with 6 additions and 0 deletions
|
@ -1198,6 +1198,12 @@ ZEND_API int zend_update_class_constants(zend_class_entry *class_type) /* {{{ */
|
|||
}
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
|
||||
if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) {
|
||||
if (class_type->type == ZEND_INTERNAL_CLASS || (class_type->ce_flags & (ZEND_ACC_IMMUTABLE|ZEND_ACC_PRELOADED))) {
|
||||
zend_class_init_statics(class_type);
|
||||
}
|
||||
}
|
||||
|
||||
ce = class_type;
|
||||
while (ce) {
|
||||
ZEND_HASH_FOREACH_PTR(&ce->properties_info, prop_info) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue