]> granicus.if.org Git - php/commitdiff
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
authorFelipe Pena <felipe@php.net>
Sun, 20 Feb 2011 16:09:50 +0000 (16:09 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 20 Feb 2011 16:09:50 +0000 (16:09 +0000)
ext/spl/spl_iterators.c

index e2ad8f3b2c28955e723c38a026ff8fe89f6baa11..cabf9f55f33034bf53a2397e2de039d76c55adb9 100755 (executable)
@@ -2753,7 +2753,7 @@ SPL_METHOD(CachingIterator, setFlags)
                zend_throw_exception(spl_ce_InvalidArgumentException, "Unsetting flag TOSTRING_USE_INNER is not possible", 0 TSRMLS_CC);
                return;
        }
-       if ((flags && CIT_FULL_CACHE) != 0 && (intern->u.caching.flags & CIT_FULL_CACHE) == 0) {
+       if ((flags & CIT_FULL_CACHE) != 0 && (intern->u.caching.flags & CIT_FULL_CACHE) == 0) {
                /* clear on (re)enable */
                zend_hash_clean(HASH_OF(intern->u.caching.zcache));
        }