From 2d63683ec3effbddd1a4a6ed5234822a58455198 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 29 May 2010 22:08:51 +0000 Subject: - Fixed ReflectionClass::isTrait() checking (to not identify abstract class as 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 2d8ba6e0c2..a590bf541d 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3999,7 +3999,7 @@ ZEND_METHOD(reflection_class, isInterface) Returns whether this is a trait */ ZEND_METHOD(reflection_class, isTrait) { - _class_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_TRAIT); + _class_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_TRAIT & ~ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); } /* }}} */ -- cgit v1.2.1