Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-608

CachingIterator uses wrong check for validity

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0-alpha1, 1.9.0
    • Affects Version/s: 1.9.0
    • Component/s: None
    • None

      In storeCurrentItem, the CachingIterator class checks the nested iterator for validity by checking that the key is not null instead of using the valid() method of the nested iterator. In combination with PHPC-1748, this causes invalid positions to be treated as valid.

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: