[CORE] Bump PHP version to 7.4

This commit is contained in:
Diogo Peralta Cordeiro 2021-07-18 12:53:12 +01:00
parent 6e031d623a
commit 504c21a519
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0
9 changed files with 14 additions and 24 deletions

View File

@ -27,7 +27,7 @@ PHP modules
The following software packages are *required* for this software to
run correctly.
- PHP 7.3+
- PHP 7.4+
- MariaDB 10.3+
- Web server Apache, lighttpd and nginx will all work. CGI mode is
recommended and also some variant of 'suexec' (or a

View File

@ -4,7 +4,7 @@
"type": "project",
"license": "AGPL-3.0-only",
"require": {
"php": "^7.3.0",
"php": "^7.4.0",
"ext-bcmath": "*",
"ext-ctype": "*",
"ext-curl": "*",

6
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "f7c49732f6b0c37b67e783fc0d5535d2",
"content-hash": "ffd21e90500734effbec6791af16994c",
"packages": [
{
"name": "alchemy/binary-driver",
@ -6869,7 +6869,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
"php": "^7.3.0",
"php": "^7.4.0",
"ext-bcmath": "*",
"ext-ctype": "*",
"ext-curl": "*",
@ -6885,7 +6885,7 @@
},
"platform-dev": [],
"platform-overrides": {
"php": "7.3.0"
"php": "7.4.0"
},
"plugin-api-version": "2.0.0"
}

View File

@ -34,7 +34,7 @@ define('GNUSOCIAL_ENGINE', 'GNU social');
define('GNUSOCIAL_ENGINE_URL', 'https://gnusocial.rocks/');
define('GNUSOCIAL_ENGINE_REPO_URL', 'https://notabug.org/diogo/gnu-social/'); // Change to https://git.gnu.io/gnu/gnu-social
define('GNUSOCIAL_BASE_VERSION', '2.0.0');
define('GNUSOCIAL_BASE_VERSION', '2.0.1');
define('GNUSOCIAL_LIFECYCLE', 'beta0'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);

View File

@ -112,8 +112,8 @@ abstract class Installer
}
}
if (version_compare(PHP_VERSION, '7.3.0', '<')) {
$this->warning('Require PHP version 7.3.0 or greater.');
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
$this->warning('Require PHP version 7.4.0 or greater.');
$pass = false;
}

View File

@ -27,16 +27,6 @@
defined('GNUSOCIAL') || die;
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
function password_algos(): array
{
$algos = [PASSWORD_BCRYPT];
defined('PASSWORD_ARGON2I') && $algos[] = PASSWORD_ARGON2I;
defined('PASSWORD_ARGON2ID') && $algos[] = PASSWORD_ARGON2ID;
return $algos;
}
}
class AuthCryptModule extends AuthenticationModule
{
const MODULE_VERSION = '2.0.0';

View File

@ -30,7 +30,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'cd3a9ec6a9a22fb3b46a293be7223f86b0006f24',
'reference' => '7d8988d50ce24639daaf48608ce14d91291a519d',
'name' => 'gnusocial/gnusocial',
),
'versions' =>
@ -114,7 +114,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'cd3a9ec6a9a22fb3b46a293be7223f86b0006f24',
'reference' => '7d8988d50ce24639daaf48608ce14d91291a519d',
),
'guzzlehttp/psr7' =>
array (

View File

@ -6,7 +6,7 @@
'aliases' =>
array (
),
'reference' => 'cd3a9ec6a9a22fb3b46a293be7223f86b0006f24',
'reference' => '7d8988d50ce24639daaf48608ce14d91291a519d',
'name' => 'gnusocial/gnusocial',
),
'versions' =>
@ -90,7 +90,7 @@
'aliases' =>
array (
),
'reference' => 'cd3a9ec6a9a22fb3b46a293be7223f86b0006f24',
'reference' => '7d8988d50ce24639daaf48608ce14d91291a519d',
),
'guzzlehttp/psr7' =>
array (

View File

@ -4,8 +4,8 @@
$issues = array();
if (!(PHP_VERSION_ID >= 70300)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70400)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {