Steps to Reproduce:
php maintenance/install.php --env-checks
Actual Results:
Warning: you have SQLite 3.8.0, which is lower than minimum required version 3.7.17. SQLite will be unavailable.
Expected Results:
Warning: you have SQLite 3.7.17, which is lower than minimum required version 3.8.0. SQLite will be unavailable.
// includes/installer/DatabaseInstaller.php public static function meetsMinimumRequirement( $serverVersion ) { if ( version_compare( $serverVersion, static::$minimumVersion ) < 0 ) { return Status::newFatal( static::$notMiniumumVerisonMessage, static::$minimumVersion, $serverVersion ); } return Status::newGood(); }
// includes/installer/SqliteInstaller.php public function checkPrerequisites() { // Bail out if SQLite is too old $db = DatabaseSqlite::newStandaloneInstance( ':memory:' ); $result = static::meetsMinimumRequirement( $db->getServerVersion() ); // more code... }
// includes/installer/i18n/en.json "config-outdated-sqlite": "<strong>Warning:</strong> you have SQLite $1, which is lower than minimum required version $2. SQLite will be unavailable.",
Due the logic of DatabaseInstaller::meetsMinimumRequirement(), $1 is the minimum version and $2 is the server version. The variable positions for the i18n message is exactly the opposite.