Browse Source

ZF-3434
- unset unused dsn $config keys

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17722 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 years ago
parent
commit
1cfd6011d1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      library/Zend/Db/Adapter/Pdo/Mssql.php

+ 2 - 0
library/Zend/Db/Adapter/Pdo/Mssql.php

@@ -85,6 +85,8 @@ class Zend_Db_Adapter_Pdo_Mssql extends Zend_Db_Adapter_Pdo_Abstract
         // don't pass the username and password in the DSN
         // don't pass the username and password in the DSN
         unset($dsn['username']);
         unset($dsn['username']);
         unset($dsn['password']);
         unset($dsn['password']);
+        unset($dsn['options']);
+        unset($dsn['persistent']);
         unset($dsn['driver_options']);
         unset($dsn['driver_options']);
 
 
         if (isset($dsn['port'])) {
         if (isset($dsn['port'])) {