diff options
author | Felipe Pena <felipe@php.net> | 2010-05-29 21:48:56 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-05-29 21:48:56 +0000 |
commit | 3c4ff06ca796aed254e30ccc3dfadc4a972f7d19 (patch) | |
tree | 4145281fbe7ec7ac1e319852c3b5e233dc9d60f6 /ext/reflection/php_reflection.c | |
parent | 97b7620aed0020c38d1bee90884ed5c830302b48 (diff) | |
download | php-git-3c4ff06ca796aed254e30ccc3dfadc4a972f7d19.tar.gz |
- Fixed wrong abstract class identification (it was identified as a Trait)
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 b04e749182..9b85b79d81 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -367,7 +367,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in char *kind = "Class"; if (ce->ce_flags & ZEND_ACC_INTERFACE) { kind = "Interface"; - } else if (ce->ce_flags & ZEND_ACC_TRAIT) { + } else if ((ce->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { kind = "Trait"; } string_printf(str, "%s%s [ ", indent, kind); |