title: PDO object not getting constructed properly
body: <p>I am creating a PDO object like this:</p>
  
  <pre><code>try {                                      
     $dbh = new PDO( "mysql:host=$host;dbname=$db_name" , $user, $passwd );     
  } catch( PDOException $e ) {
     echo 'Caught exception: ', $e-&gt;getMessage(), "\n";
     die();
  }
  </code></pre>
  
  <p>but there are no errors, no Exceptions and the PDO object doesn't have anything in it:</p>
  
  <pre><code>var_dump( $dbh );
  </code></pre>
  
  <p>outputs:</p>
  
  <pre><code>object(PDO)#5 (0) {
  }
  </code></pre>
  
  <p>Username/password and database name are all correct.</p>
  
  <p>Many thanks.</p>