$socket = $hostAndSocket[1];
}
+ $mysqli = mysqli_init();
+
$connFlags = 0;
if ( $this->mFlags & DBO_SSL ) {
$connFlags |= MYSQLI_CLIENT_SSL;
+ $mysqli->ssl_set(
+ $this->sslKeyPath,
+ $this->sslCertPath,
+ null,
+ $this->sslCAPath,
+ $this->sslCiphers
+ );
}
if ( $this->mFlags & DBO_COMPRESS ) {
$connFlags |= MYSQLI_CLIENT_COMPRESS;
$realServer = 'p:' . $realServer;
}
- $mysqli = mysqli_init();
if ( $wgDBmysql5 ) {
// Tell the server we're communicating with it in UTF-8.
// This may engage various charset conversions.
return $conn->real_escape_string( $s );
}
- protected function mysqlPing() {
- $conn = $this->getBindingHandle();
-
- return $conn->ping();
- }
-
/**
* Give an id for the connection
*
* @return string
*/
public function __toString() {
- if ( $this->mConn instanceof Mysqli ) {
+ if ( $this->mConn instanceof mysqli ) {
return (string)$this->mConn->thread_id;
} else {
// mConn might be false or something.