Skip to content

Commit 478464f

Browse files
committed
[skip-ci] W.I.P. changes to try and fix test
stopping for today
1 parent 0d3b666 commit 478464f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,7 @@ static zend_type zend_resolve_type(zend_type type, const zend_class_entry *const
19881988
return type;
19891989
}
19901990

1991+
ZEND_ASSERT(ZEND_TYPE_USES_ARENA(type));
19911992
zend_type_list *union_type_list = ZEND_TYPE_LIST(type);
19921993
bool has_resolved_type = false;
19931994
/* We don't use ZEND_TYPE_LIST_FOREACH() as we need to keep track of the array index */
@@ -2019,6 +2020,7 @@ static zend_type zend_resolve_type(zend_type type, const zend_class_entry *const
20192020
ZEND_TYPE_FULL_MASK(new_type) |= _ZEND_TYPE_ARENA_BIT;
20202021
/* Inform that the type list is a union type */
20212022
ZEND_TYPE_FULL_MASK(new_type) |= _ZEND_TYPE_UNION_BIT;
2023+
ZEND_TYPE_FULL_MASK(new_type) = ZEND_TYPE_FULL_MASK(type);
20222024
return new_type;
20232025
} else {
20242026
return type;
@@ -2112,7 +2114,7 @@ static void zend_add_trait_method(zend_class_entry *ce, zend_string *name, zend_
21122114
new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array));
21132115
memcpy(new_fn, fn, sizeof(zend_op_array));
21142116
zend_resolve_trait_relative_class_types(new_fn, ce);
2115-
new_fn->op_array.fn_flags |= ZEND_ACC_TRAIT_CLONE;
2117+
//new_fn->op_array.fn_flags |= ZEND_ACC_TRAIT_CLONE;
21162118
new_fn->op_array.fn_flags &= ~ZEND_ACC_IMMUTABLE;
21172119
}
21182120
new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE;

0 commit comments

Comments
 (0)