• Jeremy Mikola's avatar
    PHPLIB-81: CachingIterator fixes for rewind and count · b2a76bfb
    Jeremy Mikola authored
    Ensure that a call to CachingIterator::rewind() no longer exhausts results up front, which would impose a BufferedIterator design.
    
    Initializing the cache to an empty array also ensures that we can count an empty result set.
    b2a76bfb
CachingIteratorTest.php 3.45 KB