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

Handle duplicates in URI options array

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.7.0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: