Skip to content

Commit a3f4a50

Browse files
committed
Remove dead code
1 parent 5ab52ae commit a3f4a50

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

system/Database/MySQLi/Connection.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,6 @@ public function connect(bool $persistent = false)
207207
$socket,
208208
$clientFlags,
209209
)) {
210-
// Prior to version 5.7.3, MySQL silently downgrades to an unencrypted connection if SSL setup fails
211-
if (($clientFlags & MYSQLI_CLIENT_SSL) !== 0 && version_compare($this->mysqli->client_info, 'mysqlnd 5.7.3', '<=')
212-
&& empty($this->mysqli->query("SHOW STATUS LIKE 'ssl_cipher'")->fetch_object()->Value)
213-
) {
214-
$this->mysqli->close();
215-
$message = 'MySQLi was configured for an SSL connection, but got an unencrypted connection instead!';
216-
log_message('error', $message);
217-
218-
if ($this->DBDebug) {
219-
throw new DatabaseException($message);
220-
}
221-
222-
return false;
223-
}
224-
225210
if (! $this->mysqli->set_charset($this->charset)) {
226211
log_message('error', "Database: Unable to set the configured connection charset ('{$this->charset}').");
227212

0 commit comments

Comments
 (0)