CoreFiles by mySites.guru
joomla40checks.php50 lines, 1,215 bytes, from Joomla_3.7.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.7.0-alpha1
md5
5c441c34a41de6e81baefcb55f7ab511
sha1
5c175de202ade8caeeceeaf787d982eab8195a50
sha256
4b6ca2ab452b28d9b13fac214b1b0d027674d037f0a4f111479e73a63ebc6871
<?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
 *
 * @see     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;
	}

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

The same content is in 3 releases, Joomla 3.7.0-alpha2 to 3.7.0-beta2. See them all, or every version of this file.