summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-05-29 22:08:51 +0000
committerFelipe Pena <felipe@php.net>2010-05-29 22:08:51 +0000
commit2d63683ec3effbddd1a4a6ed5234822a58455198 (patch)
tree8b9084f75fc4b3923dfd23be4b99ad6c6f110005 /ext/reflection/php_reflection.c
parent27c2c35953e3efb70b01872874eec4078a7be4f3 (diff)
downloadphp-git-2d63683ec3effbddd1a4a6ed5234822a58455198.tar.gz
- Fixed ReflectionClass::isTrait() checking (to not identify abstract class as Trait)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/* }}} */