From b339e02b1021684afe844a402fa687bafb9f6f0e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Nov 2024 08:51:53 +0100 Subject: display stable and testing versions available --- wizard/index.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'wizard/index.php') diff --git a/wizard/index.php b/wizard/index.php index e84ee440..59fa1776 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -118,7 +118,7 @@ $phpvers = [ ]; $phpname = [ ':devel' => 'Development version, not ready for production', - '8.4' => '8.4.0RC3', + '8.4' => '8.4.0RC4', ':stable' => 'Stable versions - usage recommended', '8.3' => '8.3.13 (active support until December 2025)', '8.2' => '8.2.25 (active support until December 2024)', @@ -133,6 +133,11 @@ $phpname = [ '7.0' => '7.0.33 (no upstream support since December 2018)', '5.6' => '5.6.40 (no upstream support since January 2019)', ]; +$phptest = [ + '8.3' => '8.3.14RC1', + '8.2' => '8.2.26RC1', +]; + $php = (isset($_POST['php']) && isset($phpvers[$_POST['php']]) ? $_POST['php'] : false); $os = (isset($_POST['os']) && isset($osvers[$_POST['os']]) ? $_POST['os'] : false); $type = (isset($_POST['type']) && isset($types[$_POST['type']]) ? $_POST['type'] : false); @@ -274,6 +279,7 @@ if ($arch == 'ppc64le' || $arch == 's390x') { } if ($php && $os && $type && !$err) { + $disp = explode(' ', $phpname[$php], 2)[0]; if ($dist == 'Fedora') { $mod = ($ver >= 29); $dnf5 = ($ver >= 41); @@ -362,7 +368,7 @@ if ($php && $os && $type && !$err) { } if ($mod) { - printf("
  • PHP version %s packages are available for %s in remi-modular repository

  • ", $php, $os); + printf("
  • PHP version %s packages are available for %s in remi-modular repository

  • ", $disp, $os); if ($dnf5) { // dnf v5 have minimal support for modularity https://bugzilla.redhat.com/2305955 printf("
  • You have to enable the module stream for $php:"); @@ -391,7 +397,7 @@ if ($php && $os && $type && !$err) { printf("

  • "); } } else { - printf("
  • PHP version %s packages are available for %s in %s repository

  • ", $php, $os, $repo); + printf("
  • PHP version %s packages are available for %s in %s repository

  • ", $disp, $os, $repo); printf("
  • Command to enable the repository:"); printf("
        yum-config-manager --disable 'remi-php*'");
    @@ -418,6 +424,10 @@ if ($php && $os && $type && !$err) {
                     printf("
        $yum --enablerepo=%s-test install php-xxx
    ", $repo); printf("

  • "); } + if (isset($phptest[$php])) { + printf("
  • PHP version %s packages are available in the testing repository.", $phptest[$php]); + printf("

  • "); + } printf("
  • Command to check the installed version and available extensions:"); printf("
        php --version\n    php --modules
    "); @@ -446,7 +456,7 @@ if ($php && $os && $type && !$err) { printf("
  • Some common dependencies are available in remi repository, which need to be enabled"); printf("
        dnf config-manager --set-enabled remi

  • "); - printf("
  • The %s collection is available in the $repo repository

  • ", $scl); + printf("
  • The %s collection is available in the $repo repository, and provides PHP version %s

  • ", $scl, $disp); printf("
  • Command to install:"); printf("
        $yum install %s
    ", $scl); printf("

  • "); @@ -469,6 +479,10 @@ if ($php && $os && $type && !$err) { printf("
        $yum --enablerepo=remi-test install %s-php-xxx
    ", $scl); printf("
    "); } + if (isset($phptest[$php])) { + printf("
  • PHP version %s packages are available in the testing repository.", $phptest[$php]); + printf("

  • "); + } printf("
  • Command to check the installed version and available extensions:"); printf("
        %s --version\n    %s --modules
    ", $scl, $scl); -- cgit