com php-src: Fixed #69566 in master: Zend/zend_inheritance. c
| From: | Xinchen Hui | Date: | Mon, 04 May 2015 02:35:55 +0000 |
| Subject: | com php-src: Fixed #69566 in master: Zend/zend_inheritance. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86580@lists.php.net to get a copy of this message | ||
Commit: 6b5ca7202fe95240c0ecc17861c050683547a816
Author: Xinchen Hui <laruence@php.net> Mon, 4 May 2015 10:35:55 +0800
Parents: 02110bdfaa8ecc361a612779703f45df313530b3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6b5ca7202fe95240c0ecc17861c050683547a816
Log:
Fixed #69566 in master
Bugs:
https://bugs.php.net/69566
Changed paths:
M Zend/zend_inheritance.c
Diff:
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index 52f4994..f32c55a 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -1135,7 +1135,7 @@ static void zend_fixup_trait_method(zend_function *fn, zend_class_entry *ce)
/*
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;
}
}