oci_debug("START _oci_conn_list_dtor: id=%d",connection->id);
- if (connection->session && connection->session->exclusive) {
- /* exclusive connection created via OCINLogon() close their
- associated session when destructed */
- zend_list_delete(connection->session->num);
- }
-
if (connection->pServiceContext) {
connection->error =
OCITransRollback(connection->pServiceContext,
OCIHandleFree((dvoid *) connection->pServiceContext, (ub4) OCI_HTYPE_SVCCTX);
}
+ if (connection->session && connection->session->exclusive) {
+ /* exclusive connection created via OCINLogon() close their
+ associated session when destructed */
+ zend_list_delete(connection->session->num);
+ }
+
if (connection->pError) {
OCIHandleFree((dvoid *) connection->pError, (ub4) OCI_HTYPE_ERROR);
}
return;
}
- oci_debug("_oci_close_session: logging-off sess=%d",session->num);
+ oci_debug("START _oci_close_session: logging-off sess=%d",session->num);
if (session->open) {
/* Temporary Service Context */