From 9708378d13090c56e8ff341d2a3723cee97f2ec0 Mon Sep 17 00:00:00 2001 From: John Boehr Date: Sun, 3 May 2015 14:29:19 -0700 Subject: [PATCH] Fix uninitialized value with extension traits --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 4e073fea76..4e7370c49c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3962,7 +3962,7 @@ static int zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce TSRML if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { ce->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; } - if (fn->op_array.static_variables) { + if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) { ce->ce_flags |= ZEND_HAS_STATIC_IN_METHODS; } } -- 2.40.0