From: Derick Rethans Date: Wed, 23 Feb 2005 12:20:04 +0000 (+0000) Subject: - Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true) X-Git-Tag: RELEASE_0_3~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30d9fd6bba012ab01b11bedbc83ed8cc2e875202;p=php - Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true) (Patch by Antony Dogval) --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 395c7a754c..4b1f859dd0 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -2190,7 +2190,7 @@ ZEND_METHOD(reflection_method, isDestructor) METHOD_NOTSTATIC_NUMPARAMS(0); GET_REFLECTION_OBJECT_PTR(mptr); - RETURN_BOOL(mptr->common.fn_flags && ZEND_ACC_DTOR); + RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_DTOR); } /* }}} */ diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 395c7a754c..4b1f859dd0 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2190,7 +2190,7 @@ ZEND_METHOD(reflection_method, isDestructor) METHOD_NOTSTATIC_NUMPARAMS(0); GET_REFLECTION_OBJECT_PTR(mptr); - RETURN_BOOL(mptr->common.fn_flags && ZEND_ACC_DTOR); + RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_DTOR); } /* }}} */