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

Handle duplicates in URI options array

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: 1.2.9
    • Component/s: None

      The driver handles duplicate options with different character casing very poorly. For instance, if the options array contained both `readpreference` and `readPreference`, bson_iter_init_find_case() would only pick up the first matching key and ignore subsequent duplicates.

      This should be changed to iterate over the options to be consistent with the handling of other duplicates in the URI options array, with the last value overriding previous occurrences regardless of casing.

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: