From 30d9fd6bba012ab01b11bedbc83ed8cc2e875202 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 23 Feb 2005 12:20:04 +0000 Subject: - Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true) (Patch by Antony Dogval) --- 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 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); } /* }}} */ -- cgit v1.2.1