Skip to content

Commit 0bac574

Browse files
committed
Fix missing flags on default property copy
1 parent a86755f commit 0bac574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ static void do_inherit_property(zend_property_info *parent_info, zend_string *ke
14911491

14921492
if (use_parent_prop) {
14931493
int child_num = OBJ_PROP_TO_NUM(child_info->offset);
1494-
ZVAL_COPY_VALUE(&ce->default_properties_table[parent_num], &ce->default_properties_table[child_num]);
1494+
ce->default_properties_table[parent_num] = ce->default_properties_table[child_num];
14951495
ZVAL_UNDEF(&ce->default_properties_table[child_num]);
14961496
} else {
14971497
ZVAL_UNDEF(&ce->default_properties_table[parent_num]);

0 commit comments

Comments
 (0)