Skip to content

Commit bb75a53

Browse files
committed
Fix get_unresolved_initializer for static props
For static props the offset is a simple index.
1 parent 1c9fe30 commit bb75a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3275,7 +3275,7 @@ static void get_unresolved_initializer(zend_class_entry *ce, const char **kind,
32753275
ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->properties_info, key, prop) {
32763276
zval *val;
32773277
if (prop->flags & ZEND_ACC_STATIC) {
3278-
val = &ce->default_static_members_table[OBJ_PROP_TO_NUM(prop->offset)];
3278+
val = &ce->default_static_members_table[prop->offset];
32793279
} else {
32803280
val = &ce->default_properties_table[OBJ_PROP_TO_NUM(prop->offset)];
32813281
}

0 commit comments

Comments
 (0)