Browse Source

[ZF-3984]connection control not sufficient in case of "Too many open links".

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15598 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 years ago
parent
commit
9714cce79c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      library/Zend/Db/Adapter/Mysqli.php

+ 2 - 0
library/Zend/Db/Adapter/Mysqli.php

@@ -324,6 +324,8 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract
         );
 
         if ($_isConnected === false || mysqli_connect_errno()) {
+
+            $this->closeConnection();
             /**
              * @see Zend_Db_Adapter_Mysqli_Exception
              */