]> granicus.if.org Git - php/commitdiff
- MFH Fix logic
authorMarcus Boerger <helly@php.net>
Sun, 9 Jul 2006 23:30:19 +0000 (23:30 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 9 Jul 2006 23:30:19 +0000 (23:30 +0000)
ext/reflection/php_reflection.c

index f1ab8560bf91bebbfa1f1fab509b87e0dacb08ae..a223889a683200c9ed3fa13019f591fe0f20c71f 100644 (file)
@@ -3889,7 +3889,7 @@ ZEND_METHOD(reflection_property, setValue)
        METHOD_NOTSTATIC(reflection_property_ptr);
        GET_REFLECTION_OBJECT_PTR(ref);
 
-       if (ref->prop->flags & ~(ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)) {
+       if (!(ref->prop->flags & ZEND_ACC_PUBLIC)) {
                _DO_THROW("Cannot access non-public member");
                /* Returns from this function */
        }