CoreFiles by mySites.guru
joomla40checks.php55 lines, 1,298 bytes, from Joomla_3.7.3-Stable-Full_Package.zip
Raw History Compare with 3.7.2
md5
59903419ffdec2e87fe77bc80fa5c76a
sha1
707cb4621948910fc01ba3af3b72e261fe7b3633
sha256
61703c52311b1dd0a64999901e6a71f0b6b4a35835fc93cd2dcd56d86eac2b4c
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_admin
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 *
 * This file contains post-installation message handling for Joomla 4.0 pre checks
 */

defined('_JEXEC') or die;

/**
 * Checks if the installation meats the current requirements for Joomla 4
 *
 * @return  boolean  True if any check fails.
 *
 * @since   3.7
 *
 * @link    https://developer.joomla.org/news/658-joomla4-manifesto.html
 */
function admin_postinstall_joomla40checks_condition()
{
	$db            = JFactory::getDbo();
	$serverType    = $db->getServerType();
	$serverVersion = $db->getVersion();

	if ($serverType == 'mssql')
	{
		// MS SQL support will be dropped
		return true;
	}

	if ($serverType == 'postgresql' && version_compare($serverVersion, '9.2', 'lt'))
	{
		// PostgreSQL minimum version is 9.2
		return true;
	}

	if ($serverType == 'mysql' && version_compare($serverVersion, '5.5.3', 'lt'))
	{
		// MySQL minimum version is 5.5.3
		return true;
	}

	if ($db->name === 'mysql')
	{
		// Using deprecated MySQL driver
		return true;
	}

	// PHP minimum version is 5.5
	return version_compare(PHP_VERSION, '5.5.9', 'lt');
}

The same content is in 10 releases, Joomla 3.7.3-beta1 to 3.8.0-beta2. See them all, or every version of this file.