From 3c4ff06ca796aed254e30ccc3dfadc4a972f7d19 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 29 May 2010 21:48:56 +0000 Subject: - Fixed wrong abstract class identification (it was identified as a Trait) --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') 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); -- cgit v1.2.1