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

toJSON() should return after throwing for bson_reader_read() failure

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None

      If bson_reader_read() fails, an exception is thrown; however, we still make an additional call to check for EOF, which may itself throw a separate exception (capturing the original under getPrevious()). We should return after the first exception is thrown.

            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: