title: Uncaught exception 'MongoException' with message 'Invalid object ID'
body: <p>I had a PHP code which was working nicely, but after I updated Mongo (2.4.4) and mongo driver for php (1.4.2), my code started to generate fatal error.</p>
  
  <p>The line which generates an error is this one</p>
  
  <pre><code>$something = new MongoId($some);
  </code></pre>
  
  <p>It generates an error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'MongoException' with message 'Invalid object ID'
  </code></pre>
  
  <p>Surely, I can roll back my updates, but is there any idea how I can fix it without rolling back?</p>