CoreFiles by mySites.guru
joomla40checks.php56 lines, 1,381 bytes, from Joomla_3.8.7-Stable-Full_Package.zip
Raw History Compare with 3.8.6
md5
fc1116a516188a4d3368e71388ea2bfd
sha1
141494d24ac0891fd69d1fe8fa6cd4a777642f9f
sha256
435b95d128a5ad88c86ff57634c801563a912bae58274aa07139163ccb02a1fd
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_admin
 *
 * @copyright   Copyright (C) 2005 - 2018 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 meets 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
 * @link    https://developer.joomla.org/news/704-looking-forward-with-joomla-4.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 7.0
	return version_compare(PHP_VERSION, '7.0', 'lt');
}

The same content is in 14 releases, Joomla 3.8.6-rc1 to 3.8.13. See them all, or every version of this file.