r87069 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87068‎ | r87069 | r87070 >
Date:12:46, 28 April 2011
Author:freakolowsky
Status:ok
Tags:
Comment:
* MFT r87068
Modified paths:
  • /branches/REL1_17/phase3/includes/db/DatabaseOracle.php (modified) (history)

Diff [purge]

Index: branches/REL1_17/phase3/includes/db/DatabaseOracle.php
@@ -185,6 +185,14 @@
186186 wfRunHooks( 'DatabaseOraclePostInit', array( $this ) );
187187 }
188188
 189+ function __destruct() {
 190+ if ($this->mOpened) {
 191+ wfSuppressWarnings();
 192+ $this->close();
 193+ wfRestoreWarnings();
 194+ }
 195+ }
 196+
189197 function getType() {
190198 return 'oracle';
191199 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87068* close connection in class destructor (unlike MySql, Oracle does not commit ...freakolowsky12:44, 28 April 2011

Status & tagging log