]> granicus.if.org Git - php/commitdiff
- Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true)
authorDerick Rethans <derick@php.net>
Wed, 23 Feb 2005 12:20:04 +0000 (12:20 +0000)
committerDerick Rethans <derick@php.net>
Wed, 23 Feb 2005 12:20:04 +0000 (12:20 +0000)
  (Patch by Antony Dogval)

Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 395c7a754c8405d4917510583acb763461fc0c25..4b1f859dd0b358e9411a87a8c3af7b118589a185 100644 (file)
@@ -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);
 }
 /* }}} */
 
index 395c7a754c8405d4917510583acb763461fc0c25..4b1f859dd0b358e9411a87a8c3af7b118589a185 100644 (file)
@@ -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);
 }
 /* }}} */