Index: branches/REL1_17/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -185,6 +185,14 @@ |
186 | 186 | wfRunHooks( 'DatabaseOraclePostInit', array( $this ) ); |
187 | 187 | } |
188 | 188 | |
| 189 | + function __destruct() { |
| 190 | + if ($this->mOpened) { |
| 191 | + wfSuppressWarnings(); |
| 192 | + $this->close(); |
| 193 | + wfRestoreWarnings(); |
| 194 | + } |
| 195 | + } |
| 196 | + |
189 | 197 | function getType() { |
190 | 198 | return 'oracle'; |
191 | 199 | } |