summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-02-20 16:09:50 +0000
committerFelipe Pena <felipe@php.net>2011-02-20 16:09:50 +0000
commit5b442c82f040ec49016d33c96c5908ee4b8e95a6 (patch)
treed5d021ed6bf1206e1de30af9b08e63d167416f95
parente78a5127c8b2fd9f89248d2ff6b8f5e8847ef07d (diff)
downloadphp-git-5b442c82f040ec49016d33c96c5908ee4b8e95a6.tar.gz
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
-rwxr-xr-xext/spl/spl_iterators.c2
1 files changed, 1 insertions, 1 deletions
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));
}