From c4850dbf886715676ffb5f587c222c5963b43ae6 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 20 Feb 2011 16:09:50 +0000 Subject: [PATCH] - Fixed bug #54040 (Logical && where & probably needed in spl_iterators) --- ext/spl/spl_iterators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index e2ad8f3b2c..cabf9f55f3 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -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)); } -- 2.40.0