} elseif ( substr_count( $realServer, ':' ) == 1 ) {
// If we have a colon and something that's not a port number
// inside the hostname, assume it's the socket location
- $hostAndSocket = explode( ':', $realServer );
+ $hostAndSocket = explode( ':', $realServer, 2 );
$realServer = $hostAndSocket[0];
$socket = $hostAndSocket[1];
}
}
}
+/**
+ * @deprecated since 1.29
+ */
class_alias( DatabaseMysqli::class, 'DatabaseMysqli' );