ZF-10829: Zend_Db_Adapter_Oracle::isConnected() is not working with persistent connections.

Description

If we are using persistent connection with Oracle, isConnected() always return false.

It's because it validates ressource type, but is not taking in count that it's note the same ressource type when we are in persistant connection.

Comments

Current code : {quote} /** * Test if a connection is active * * @return boolean */ public function isConnected() { return ((bool) (is_resource($this->_connection) && get_resource_type($this->_connection) == 'oci8 connection')); } {quote}

Fixed code : {quote} /** * Test if a connection is active * * @return boolean */ public function isConnected() { return ((bool) (is_resource($this->_connection) && ((get_resource_type($this->_connection) == 'oci8 connection') || (get_resource_type($this->_connection) == 'oci8 persistent connection')))); } {quote}

Assigned to Ralph

Fixed in trunk with r23557 and in 1.11 branch with r23558