We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f51764 commit 60dca22Copy full SHA for 60dca22
Zend/zend_API.c
@@ -1198,6 +1198,12 @@ ZEND_API int zend_update_class_constants(zend_class_entry *class_type) /* {{{ */
1198
}
1199
} ZEND_HASH_FOREACH_END();
1200
1201
+ if (class_type->default_static_members_count && !CE_STATIC_MEMBERS(class_type)) {
1202
+ if (class_type->type == ZEND_INTERNAL_CLASS || (class_type->ce_flags & (ZEND_ACC_IMMUTABLE|ZEND_ACC_PRELOADED))) {
1203
+ zend_class_init_statics(class_type);
1204
+ }
1205
1206
+
1207
ce = class_type;
1208
while (ce) {
1209
ZEND_HASH_FOREACH_PTR(&ce->properties_info, prop_info) {
0 commit comments