com php-src: Fix uninitialized value with extension traits: Zend/zend_compile.c
| From: | Xinchen Hui | Date: | Mon, 04 May 2015 02:33:39 +0000 |
| Subject: | com php-src: Fix uninitialized value with extension traits: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86577@lists.php.net to get a copy of this message | ||
Commit: 9708378d13090c56e8ff341d2a3723cee97f2ec0
Author: John Boehr <jbboehr@gmail.com> Sun, 3 May 2015 14:29:19 -0700
Committer: Xinchen Hui <laruence@php.net> Mon, 4 May 2015 10:33:39 +0800
Parents: ce6db558f9c0dc3657f481650642f293ee7cb2c4
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9708378d13090c56e8ff341d2a3723cee97f2ec0
Log:
Fix uninitialized value with extension traits
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 4e073fe..4e7370c 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;
}
}