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

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

      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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: