@@ -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
@@ -625,8 +610,6 @@ public function insertID(): int
625610 */
626611 protected function _transBegin (): bool
627612 {
628- $ this ->connID ->autocommit (false );
629-
630613 return $ this ->connID ->begin_transaction ();
631614 }
632615
@@ -635,26 +618,14 @@ protected function _transBegin(): bool
635618 */
636619 protected function _transCommit (): bool
637620 {
638- if ($ this ->connID ->commit ()) {
639- $ this ->connID ->autocommit (true );
640-
641- return true ;
642- }
643-
644- return false ;
621+ return $ this ->connID ->commit ();
645622 }
646623
647624 /**
648625 * Rollback Transaction
649626 */
650627 protected function _transRollback (): bool
651628 {
652- if ($ this ->connID ->rollback ()) {
653- $ this ->connID ->autocommit (true );
654-
655- return true ;
656- }
657-
658- return false ;
629+ return $ this ->connID ->rollback ();
659630 }
660631}
0 commit comments