From: Felipe Pena Date: Sun, 20 Feb 2011 16:09:50 +0000 (+0000) Subject: - Fixed bug #54040 (Logical && where & probably needed in spl_iterators) X-Git-Tag: php-5.3.6RC2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b442c82f040ec49016d33c96c5908ee4b8e95a6;p=php - Fixed bug #54040 (Logical && where & probably needed in spl_iterators) --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index b67a7abfe7..7fa34272d9 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -2739,7 +2739,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)); }