Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1162

Dumping cursor while iterating with IteratorIterator may segfault

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.3
    • Affects Version/s: 1.2.0
    • Component/s: None
    • None
    • Environment:
      PHP 7.x

      Curiously, the "currentDocument" element in the cursor's var_dump() output has never had a reference added when being set inside the debug array. This dates back to 78839bd for PHPC-688. The line is there, but commented out. There is also no mention of this in the corresponding code review for that issue.

      This was discovered while writing a test case for PHPC-1161.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: