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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • 1.1.8
    • 1.2.0-alpha1, 1.2.0
    • None
    • None

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              jmikola@mongodb.com Jeremy Mikola
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: