Validate filter and options in Query constructor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      While the crash in PHPC-920 was ultimately the result of a libmongoc bug (CDRIVER-2072), we could have avoided it by validating the Query's filter and options arguments at construct time and throwing an InvalidArgumentException.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: