Reenable the check for MySQL Native Driver in WCFSetup
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Jul 2022 10:05:34 +0000 (12:05 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Jul 2022 10:11:02 +0000 (12:11 +0200)
see #4386

wcfsetup/install/files/lib/system/WCFSetup.class.php

index 6291b49adf13ad884966d68a7372e7c49fc518cf..5ab5a6db81751843ac54c4a89404a4b8efac2586 100644 (file)
@@ -774,15 +774,13 @@ final class WCFSetup extends WCF
                 }
 
                 // check for PHP's MySQL native driver
-                /*
                 $sql = "SELECT 1";
                 $statement = $db->prepareStatement($sql);
                 $statement->execute();
                 // MySQL native driver understands data types, libmysqlclient does not
                 if ($statement->fetchSingleColumn() !== 1) {
-                    throw new SystemException("MySQLnd is not being used for database communication.");
+                    throw new SystemException("MySQL Native Driver is not being used for database communication.");
                 }
-                */
 
                 // check for table conflicts
                 $conflictedTables = $this->getConflictedTables($db);