From 642f10383345fbe36337b8aad3364ab4e81dfeb0 Mon Sep 17 00:00:00 2001 From: Gary Allan <github@gallan.co.uk> Date: Sun, 3 Dec 2023 11:15:37 +0000 Subject: [PATCH] Feature: Update mimimum PHP version to 7.2 (RHEL 8+/20.04LTS+) https://github.com/phpipam/phpipam/issues/3814#issuecomment-1494079435 --- README.md | 6 ++++-- functions/checks/check_php_build.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a42a4ea7..25f6428b 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ to be able to display javascript quickly and correctly. ## Branches - MASTER: Current development release - - 1.5: Productional branch for 1.5.x release + - 1.6: Productional branch for 1.6.x release + - 1.5: Productional branch for 1.5.x release (obsolete) - 1.4: Productional branch for 1.4.x release (obsolete) - 1.3: Productional branch for 1.3.x release (obsolete) - 1.2: Productional branch for 1.2.x release (obsolete) @@ -26,7 +27,8 @@ to be able to display javascript quickly and correctly. phpIPAM has been developed and tested on the following PHP versions.\ The use of untested PHP versions is unsupported and may result in compatibility issues. -- MASTER: PHP versions 5.4 to 8.1 (8.x support work-in-progress) +- MASTER: PHP versions 7.2 to 8.3 +- 1.6.x: PHP versions 7.2 to 8.3 - 1.5.x: PHP versions 5.4 to 7.4 - 1.4.x: PHP versions 5.4 to 7.4 - 1.3.x: PHP versions 5.4 to 7.1 diff --git a/functions/checks/check_php_build.php b/functions/checks/check_php_build.php index a3237bb5..612f0618 100755 --- a/functions/checks/check_php_build.php +++ b/functions/checks/check_php_build.php @@ -12,10 +12,10 @@ $requiredExt = array("session", "sockets", "filter", "openssl", "gmp", "json", $requiredFns = array("simplexml_load_string"); if(!defined('PHPIPAM_PHP_MIN')) -define('PHPIPAM_PHP_MIN', "5.4"); +define('PHPIPAM_PHP_MIN', "7.2"); if(!defined('PHPIPAM_PHP_UNTESTED')) -define('PHPIPAM_PHP_UNTESTED', "9.0"); // PHP 8.2 or greater is untested & unsupported +define('PHPIPAM_PHP_UNTESTED', "8.4"); // PHP 8.4 or greater is untested, use at own risk and expect issues if (phpversion() >= PHPIPAM_PHP_UNTESTED) { $_SESSION['footer_warnings']['php_version'] = _('Unsupported PHP version ') . phpversion(); -- GitLab