diff options
author | Felipe Pena <felipe@php.net> | 2010-05-29 21:55:19 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-05-29 21:55:19 +0000 |
commit | 23dfc1fa9d93f1286c3288cbeb87add2bdd77dd0 (patch) | |
tree | 2e1c1bd2672311012ba46644ed798a51515c65d6 /ext/reflection/php_reflection.c | |
parent | 3c4ff06ca796aed254e30ccc3dfadc4a972f7d19 (diff) | |
download | php-git-23dfc1fa9d93f1286c3288cbeb87add2bdd77dd0.tar.gz |
- Missing Trait check fix
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 9b85b79d81..2d8ba6e0c2 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -382,7 +382,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in } if (ce->ce_flags & ZEND_ACC_INTERFACE) { string_printf(str, "interface "); - } else if (ce->ce_flags & ZEND_ACC_TRAIT) { + } else if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { string_printf(str, "trait "); } else { if (ce->ce_flags & (ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) { |