From: Chuck Hagenbuch Date: Tue, 26 May 2009 03:02:57 +0000 (-0400) Subject: unset a few more DSN options that can cause PDO problems (#8239) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8f7c685f178912c5200b8b15684bcd19e209e08b;p=horde.git unset a few more DSN options that can cause PDO problems (#8239) --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php b/framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php index 46723cfae..885532186 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php +++ b/framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php @@ -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(