From eba50766251dc37b7971f0b690bf5ed8f672ed8c Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 19 Apr 2012 08:45:42 +0000 Subject: [PATCH] Reorder alphabetically. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325329 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/ini.xml | 246 ++++++++++++++++++++-------------------- 1 file changed, 123 insertions(+), 123 deletions(-) diff --git a/reference/mongo/ini.xml b/reference/mongo/ini.xml index ebbdd4c9e1..3cfa9e9065 100644 --- a/reference/mongo/ini.xml +++ b/reference/mongo/ini.xml @@ -16,32 +16,17 @@ - mongo.native_long - false* - PHP_INI_ALL - - - mongo.long_as_object + mongo.allow_empty_keys false PHP_INI_ALL - mongo.default_host - "localhost" - PHP_INI_ALL - - - mongo.default_port - 27017 - PHP_INI_ALL - - - mongo.auto_reconnect + mongo.allow_persistent true PHP_INI_SYSTEM - mongo.allow_persistent + mongo.auto_reconnect true PHP_INI_SYSTEM @@ -56,15 +41,30 @@ PHP_INI_ALL - mongo.utf8 - "1" + mongo.default_host + "localhost" PHP_INI_ALL - mongo.allow_empty_keys + mongo.default_port + 27017 + PHP_INI_ALL + + + mongo.long_as_object false PHP_INI_ALL + + mongo.native_long + false* + PHP_INI_ALL + + + mongo.utf8 + "1" + PHP_INI_ALL + @@ -75,94 +75,23 @@ - + - mongo.native-long + mongo.allow_empty_keys int - - The default behavior for this will be changed to &true; in 2.0.0, so make - sure to set this variable to the value you want (probably &true;) so that - the driver's behavior doesn't suddenly change when you upgrade. - + Added in version 1.0.11. - On 64-bit platforms, the mongo.native_long setting - allows for 64-bit integers to be stored in MongoDB. If it is not set, only - 32-bits of the integer will be saved. The MongoDB data type that is used - in this case is the BSON LONG, instead of the BSON INT that is used if - this setting is turned off. - - - The setting also changes the way how BSON LONGs behave when they are read - back from MongoDB. Without mongo.native_long enabled, - the driver would convert every BSON LONG to a PHP double which can result - in a loss of precision. - - - On 32-bit platforms, the mongo.native_log setting - changes nothing for storing integers in MongoDB: the integer is stored - as a BSON INT as before. However, when the setting is enabled and a - BSON LONG is read from MongoDB a - MongoCursorException is thrown alerting you that - the data could not be read back without losing precision. - - - On 32-bit systems especially, it is recommended that you combine this with - enabling mongo.long_as_object. - - - - - - - mongo.long_as_object - string - - - - Return a BSON_LONG as an instance of MongoInt64 - (instead of a primitive type). - - - - - - - mongo.default_host - string - - - - Default hostname when nothing is passed to the constructor. - - - - - - - mongo.default_port - string - - - - 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. - - - - - - - mongo.auto_reconnect - bool - - - - Whether to reconnect to the database if the connection is lost. + If empty strings ("") should be allowed as key names. By default, the + driver will throw an exception if you attempt to pass the empty string as + a key to the database. It is extremely easy to do this inavertently by + using double quotes with $-operators, so it is recommended that you leave + this setting as default. However, if you need to save keys that are empty + strings, you can set this option to true and the driver will allow you to + pass empty strings to the database. @@ -179,6 +108,18 @@ + + + mongo.auto_reconnect + bool + + + + Whether to reconnect to the database if the connection is lost. + + + + mongo.chunk_size @@ -232,6 +173,86 @@ $query = array( "i" => array( ":gt" => 20, ":lte" => 30 ) ); + + + mongo.default_host + string + + + + Default hostname when nothing is passed to the constructor. + + + + + + + mongo.default_port + string + + + + 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. + + + + + + + mongo.long_as_object + string + + + + Return a BSON_LONG as an instance of MongoInt64 + (instead of a primitive type). + + + + + + + mongo.native-long + int + + + + + The default behavior for this will be changed to &true; in 2.0.0, so make + sure to set this variable to the value you want (probably &true;) so that + the driver's behavior doesn't suddenly change when you upgrade. + + + + On 64-bit platforms, the mongo.native_long setting + allows for 64-bit integers to be stored in MongoDB. If it is not set, only + 32-bits of the integer will be saved. The MongoDB data type that is used + in this case is the BSON LONG, instead of the BSON INT that is used if + this setting is turned off. + + + The setting also changes the way how BSON LONGs behave when they are read + back from MongoDB. Without mongo.native_long enabled, + the driver would convert every BSON LONG to a PHP double which can result + in a loss of precision. + + + On 32-bit platforms, the mongo.native_log setting + changes nothing for storing integers in MongoDB: the integer is stored + as a BSON INT as before. However, when the setting is enabled and a + BSON LONG is read from MongoDB a + MongoCursorException is thrown alerting you that + the data could not be read back without losing precision. + + + On 32-bit systems especially, it is recommended that you combine this with + enabling mongo.long_as_object. + + + + mongo.utf8 @@ -251,27 +272,6 @@ $query = array( "i" => array( ":gt" => 20, ":lte" => 30 ) ); - - - mongo.allow_empty_keys - int - - - - Added in version 1.0.11. - - - If empty strings ("") should be allowed as key names. By default, the - driver will throw an exception if you attempt to pass the empty string as - a key to the database. It is extremely easy to do this inavertently by - using double quotes with $-operators, so it is recommended that you leave - this setting as default. However, if you need to save keys that are empty - strings, you can set this option to true and the driver will allow you to - pass empty strings to the database. - - - -