title: Error on creating connection to PDO in PHP
body: <p>Today, I removed and reinstalled the latest version of lampp in order to move to php 5.30, and suddenly a very simple app is failing to connect to the mysql database.  I'm using PDO to connect, and receiving the following error:</p>
  
  <pre><code>Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect 
  via unix://) in /home/raistlin/www/todoapp/home.php on line 9
  
  Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002]
  Invalid argument' in /home/raistlin/www/todoapp/home.php:9 Stack trace: #0
  /home/raistlin/www/todoapp/home.php(9): PDO-&gt;__construct('mysql:host=loca...', 'USER', 
  'PASSWORD') #1 {main} thrown in /home/raistlin/www/todoapp/home.php on line 9
  </code></pre>
  
  <p>I am not catching the error at the moment, for the sake of debugging it.</p>
  
  <p>The following code is enough to replicate the issue on my system:</p>
  
  <pre><code>&lt;?php
  $DBACCESS = array(
      "connstring"=&gt;"mysql:host=localhost;dbname=todoapp",
      "host"=&gt;"localhost",
      "user"=&gt;"user",
      "password"=&gt;"password",
      "todoapp"=&gt;"todoapp"
      );
  
      echo implode('&lt;br \&gt;',$DBACCESS);
  
      $dbh = new PDO($DBACCESS['connstring'],$DBACCESS['user'],$DBACCESS['password']);
  
      $dbh = null;
  ?&gt;
  </code></pre>
  
  <p>Looking online, I've found one or two other people with the same issue, but none of them have received a response, much less a working one.  Does anyone know what is happening?  Is there something I missed in the configuration?  What do I need to do to fix it?</p>