note 119820 added to mongoclient.connect

From: Date: Thu, 01 Sep 2016 00:14:52 +0000
Subject: note 119820 added to mongoclient.connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-206448@lists.php.net to get a copy of this message
(driver) mongo-1.6.14 throws exception "Database name cannot exceed 63 characters" whenever it gets a string over 63 chars. Looking at MongoClient using ReflectionMethod, MongoClient describes itself as having been passed a string containing every server that itself has determined exists in your replicaset. In other words, if there are 26 servers, MongoClient (using ReflectionMethod) returns its own (supposed) 'connect string' as (in our specific case) having over 397 characters! So, essentially, it returns data about itself that it was never passed, but rather figured out about itself after invocation. This is a very exotic error. Why is there any limit -- particularly one as low as 63 characters -- to the connect string? ---- Server IP: 72.52.91.14 Probable Submitter: 74.96.181.211 ---- Manual Page -- http://php.net/manual/en/mongoclient.connect.php Edit -- https://master.php.net/note/edit/119820 Del: integrated -- https://master.php.net/note/delete/119820/integrated Del: useless -- https://master.php.net/note/delete/119820/useless Del: bad code -- https://master.php.net/note/delete/119820/bad+code Del: spam -- https://master.php.net/note/delete/119820/spam Del: non-english -- https://master.php.net/note/delete/119820/non-english Del: in docs -- https://master.php.net/note/delete/119820/in+docs Del: other reasons-- https://master.php.net/note/delete/119820 Reject -- https://master.php.net/note/reject/119820 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206448) next »