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

Default Manager URI to "mongodb://127.0.0.1/"

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2.0-alpha1, 1.2.0
    • Affects Version/s: 1.1.8
    • Component/s: None
    • None

      We originally defaulted to "mongodb://localhost:27017/" in PHPC-509 (released in 1.1.0), but this was removed due to refactoring in PHPC-368 (released in 1.1.1). Since then, we rely on libmongoc's default of "mongodb://127.0.0.1/". Let's explicitly apply that default in the driver and update our documentation.

      When the behavior was originally changed in PHPC-368, there might have been implications for preferring IPv4 connections by default instead of resolving localhost to a possible IPv6 address (see: PHPC-512).

            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: