By the way, the duplication here is stupid.
history compression method.
* (bug 34702) Localised parentheses are now used in more special pages.
* (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
+* (bug 34762) Calling close() on a DatabaseBase object now clears the connection.
=== API changes in 1.20 ===
* (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
if ( $this->trxLevel() > 0 ) {
$this->commit( __METHOD__ );
}
- return db2_close( $this->mConn );
+ $ret = db2_close( $this->mConn );
+ $this->mConn = null;
+ return $ret;
} else {
return true;
}
function close() {
$this->mOpened = false;
if ( $this->mConn ) {
- return sqlsrv_close( $this->mConn );
+ $ret = sqlsrv_close( $this->mConn );
+ $this->mConn = null;
+ return $ret;
} else {
return true;
}
if ( $this->trxLevel() ) {
$this->commit( __METHOD__ );
}
- return mysql_close( $this->mConn );
+ $ret = mysql_close( $this->mConn );
+ $this->mConn = false;
+ return $ret;
} else {
return true;
}
if ( $this->mTrxLevel ) {
$this->commit( __METHOD__ );
}
- return oci_close( $this->mConn );
+ $ret = oci_close( $this->mConn );
+ $this->mConn = null;
+ return null;
} else {
return true;
}
function close() {
$this->mOpened = false;
if ( $this->mConn ) {
- return pg_close( $this->mConn );
+ $ret = pg_close( $this->mConn );
+ $this->mConn = null;
+ return $ret;
} else {
return true;
}