unset a few more DSN options that can cause PDO problems (#8239)
authorChuck Hagenbuch <chuck@horde.org>
Tue, 26 May 2009 03:02:57 +0000 (23:02 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 26 May 2009 03:02:57 +0000 (23:02 -0400)
framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php

index 46723cf..8855321 100644 (file)
@@ -213,7 +213,15 @@ abstract class Horde_Db_Adapter_Pdo_Abstract extends Horde_Db_Adapter_Abstract
 
         // collect options to build PDO Data Source Name (DSN) string
         $dsnOpts = $this->_config;
-        unset($dsnOpts['adapter'], $dsnOpts['username'], $dsnOpts['password']);
+        unset(
+            $dsnOpts['adapter'],
+            $dsnOpts['username'],
+            $dsnOpts['password'],
+            $dsnOpts['protocol'],
+            $dsnOpts['persistent'],
+            $dsnOpts['charset'],
+            $dsnOpts['phptype']
+        );
 
         // return DSN and user/pass for connection
         return array(