title: MongoDB does not connect with options parameter
body: <p>I am trying to connect with options parameter but it does not connect</p>
  
  <pre><code>try
    { 
      $connection_url = "mongodb://{$dbuser}:{$dbpass}@{$dburl}:{$dbport}/{$dbname}";
      $m = new MongoClient($connection_url, 
                            array('connectTimeoutMS'=&gt;30000,
                                  'socketTimeoutMS'=&gt;30000)
                         );
  
     }
     catch ( MongoConnectionException $e ) 
     {
       echo $e-&gt;getMessage();
  
     }
     catch ( MongoException $e ) 
     {
       echo $e-&gt;getMessage();
     } 
     catch ( Exception $e ) 
     {
       echo $e-&gt;getMessage();
     }
  </code></pre>
  
  <p>this code simply goes to exception with no message.</p>
  
  <p>If I remove options parameters it makes a connection to mongodb server.</p>
  
  <p>Why it does not connect with parameter option?</p>
  
  <p>If I use another way to pass <code>options</code> parameter</p>
  
  <pre><code>$connection_url = "mongodb://{$dbuser}:{$dbpass}@{$dburl}:{$dbport}
                   /{$dbname}?connectTimeoutMS=30000&amp;socketTimeoutMS=30000";
  $m = new MongoClient($connection_url);
  </code></pre>
  
  <p>It through error </p>
  
  <blockquote>
    <p>'MongoConnectionException' with message '- Found unknown connection
    string option 'connectTimeoutMS' with value '>30000''</p>
  </blockquote>
  
  <p>Neither way is working with options parameter.</p>
  
  <p>Mongodb is on mongohq.com</p>