Skip to content

Commit 56fdae9

Browse files
jbboehrlaruence
authored andcommitted
Fix uninitialized value with extension traits
1 parent 428d098 commit 56fdae9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ PHP NEWS
55
14 Jun 2015, PHP 5.6.9
66

77
- Core:
8+
. Fixed bug #69566 (Conditional jump or move depends on uninitialised value
9+
in extension trait). (jbboehr at gmail dot com)
810
. Fixed bug #69467 (Wrong checked for the interface by using Trait).
911
(Laruence)
1012
. Fixed bug #69420 (Invalid read in zend_std_get_method). (Laruence)

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4101,7 +4101,7 @@ static int zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce TSRML
41014101
if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
41024102
ce->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS;
41034103
}
4104-
if (fn->op_array.static_variables) {
4104+
if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) {
41054105
ce->ce_flags |= ZEND_HAS_STATIC_IN_METHODS;
41064106
}
41074107
}

0 commit comments

Comments
 (0)