File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments