Skip to content

Commit 9708378

Browse files
jbboehrlaruence
authored andcommitted
Fix uninitialized value with extension traits
1 parent ce6db55 commit 9708378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3962,7 +3962,7 @@ static int zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce TSRML
39623962
if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
39633963
ce->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS;
39643964
}
3965-
if (fn->op_array.static_variables) {
3965+
if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) {
39663966
ce->ce_flags |= ZEND_HAS_STATIC_IN_METHODS;
39673967
}
39683968
}

0 commit comments

Comments
 (0)