O comportamento dessas funções podem ser modificado pelas configurações do php.ini.
Nome | Padrão | Modificável | Changelog |
---|---|---|---|
mongo.default_host | NULL | PHP_INI_ALL | |
mongo.default_port | NULL | PHP_INI_ALL | |
mongo.auto_reconnect | NULL | PHP_INI_SYSTEM | |
mongo.allow_persistent | NULL | PHP_INI_SYSTEM | |
mongo.max_persistent | NULL | PHP_INI_SYSTEM | |
mongo.max_connections | NULL | PHP_INI_SYSTEM |
Para mais detalhes e definições das constantes PHP_INI_*, veja Diretivas do arquivo php.ini.
Breve descrição das diretivas de configuração.
Default hostname. "localhost" is recommended.
The default TCP port number to use when connecting to the database server if no other port is specified. The database's default is 27017.
Whether to reconnect to the database if the connection is lost.
If persistent connections are allowed.
The number of simultaneous persistent connections to allow. -1 allows unlimited persistent connections.
The number of simultaneous connections to allow. -1 allows unlimited connections.