From f837c25b024343f756be6d75ce51c360dad055ad Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 20 Jul 2011 19:39:22 +0000 Subject: [PATCH] Added example and "see also" section git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313486 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongo/setpoolsize.xml | 65 ++++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 5 deletions(-) diff --git a/reference/mongo/mongo/setpoolsize.xml b/reference/mongo/mongo/setpoolsize.xml index e368e2f561..26274638e3 100644 --- a/reference/mongo/mongo/setpoolsize.xml +++ b/reference/mongo/mongo/setpoolsize.xml @@ -6,19 +6,19 @@ Mongo::setPoolSize Set the size for future connection pools. - + &reftitle.description; - public boolMongo::setPoolSize + public static boolMongo::setPoolSize intsize - + Sets the max number of connections new pools will be able to create. - + &reftitle.parameters; @@ -38,13 +38,68 @@ - + &reftitle.returnvalues; Returns the former value of pool size. + + + + &reftitle.examples; + + + <function>Mongo::setPoolSize</function> example + + If you set the pool size to n and then create + n connections, attempting to create an + n+1st connection will throw a + MongoConnectionException. + + + +]]> + + &example.outputs.similar; + +__construct() +#1 {main} + thrown in /path/to/php/script.php on line 10 +]]> + + + + + + + + &reftitle.seealso; + + + Mongo::getPoolSize + Mongo::poolDebug + The connection documentation. + + +