From ed7fb09b68f5f1c31ff7a6b73b95ae67537e86ce Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 24 Feb 2010 15:06:34 +0000 Subject: [PATCH] added authenticate return vals git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295473 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongodb/authenticate.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongodb/authenticate.xml b/reference/mongo/mongodb/authenticate.xml index b07688fda9..0cc669c4e9 100644 --- a/reference/mongo/mongodb/authenticate.xml +++ b/reference/mongo/mongodb/authenticate.xml @@ -71,7 +71,20 @@ $result = $db->command(array("authenticate" => 1, &reftitle.returnvalues; - Returns database response. + Returns database response. If the login was successful, it will return + + 1) +]]> + + If something went wrong, it will return + + 0, "errmsg" => "auth fails") +]]> + + ("auth fails" could be another message, depending on database version and what + when wrong).