-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
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).
- is depended on by
-
PHPLIB-220 Default Client URI to "mongodb://127.0.0.1/"
- Closed