From 26a38b600cdee6878d0187a25b60413c67fcc578 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 14 Jun 2018 09:55:55 +0200 Subject: Wizard: add 7.3.0alpha1 --- wizard/index.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/wizard/index.php b/wizard/index.php index afc130d2..ff2d0150 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -9,7 +9,7 @@ '5.6', 'Fedora 25' => '5.4', ]; +$osmax = [ + 'RHEL 7' => '7.3', + 'RHEL 6' => '7.3', + 'CentOS 7' => '7.3', + 'CentOS 6' => '7.3', + 'Fedora 28' => '7.3', + 'Fedora 27' => '7.3', + 'Fedora 26' => '7.2', + 'Fedora 25' => '7.2', +]; $osname = [ 'RHEL 7' => 'RHEL-7', 'RHEL 6' => 'RHEL-6 (maintained until March 2020)', @@ -54,6 +64,7 @@ $types = [ 'scl' => 'Multiple versions simultaneously', ]; $phpvers = [ + '7.3' => false, '7.2' => 'remi-php72', '7.1' => 'remi-php71', '7.0' => 'remi-php70', @@ -62,6 +73,7 @@ $phpvers = [ '5.4' => 'remi-php54', ]; $phpname = [ + '7.3' => '7.3.0alpha1 (Please DO NOT use this version in production, it is an early test version.)', '7.2' => '7.2.6 (active support until Nov 2019)', '7.1' => '7.1.18 (active support until Dec 2018)', '7.0' => '7.0.30 (security only support until Dec 2018)', @@ -182,7 +194,10 @@ if ($php && $os && $type && !$err) { printf("
  • Packages have the same name than the base repository, ie php-*

  • "); - if (!$phpvers[$php]) { + if (version_compare($php, $osmax[$os], '>')) { + printf("
  • Sorry, but PHP version greater than %s are not available for %s.

  • ", $osmax[$os], $os); + + } else if (!$phpvers[$php]) { printf("
  • Sorry, but PHP version %s are not yet available for %s as single version, try multiple versions.

  • ", $php, $os); } else if (version_compare($php, $osvers[$os], '<')) { @@ -236,7 +251,9 @@ if ($php && $os && $type && !$err) { printf("
  • You want multiple versions which means using a Software Collection

  • "); $scl='php'.str_replace('.', '', $php); - if (version_compare($php, $osmin[$os], '<')) { + if (version_compare($php, $osmax[$os], '>')) { + printf("
  • Sorry, but PHP version greater than %s are not available for %s.

  • ", $osmax[$os], $os); + } else if (version_compare($php, $osmin[$os], '<')) { printf("
  • Sorry, but PHP version older than %s are not available for %s.

  • ", $osmin[$os], $os); } else { if (!$phpvers[$php]) { -- cgit