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

Cursor::setTypeMap() and toPHP() should return early if type map is invalid

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

      Cursor::setTypeMap() and MongoDB\BSON\toPHP() currently proceed with BSON conversion even if php_phongo_bson_typemap_to_state() throws an exception. Ideally, they should check if php_phongo_bson_typemap_to_state() fails and return early.

            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: