diff options
author | Remi Collet <remi@remirepo.net> | 2024-11-06 08:51:53 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-11-06 08:51:53 +0100 |
commit | b339e02b1021684afe844a402fa687bafb9f6f0e (patch) | |
tree | a39539d81ebf6ce094e5a25ee5b34174d88aff64 /wizard | |
parent | ae6b21c77d3e7378265e79567c9f6e0ef21ea9cb (diff) |
display stable and testing versions available
Diffstat (limited to 'wizard')
-rw-r--r-- | wizard/index.php | 22 |
1 files changed, 18 insertions, 4 deletions
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("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>remi-modular</b> repository</li><br />", $php, $os); + printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>remi-modular</b> repository</li><br />", $disp, $os); if ($dnf5) { // dnf v5 have minimal support for modularity https://bugzilla.redhat.com/2305955 printf("<li>You have to enable the module stream for $php:"); @@ -391,7 +397,7 @@ if ($php && $os && $type && !$err) { printf("</li><br />"); } } else { - printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>%s</b> repository</li><br />", $php, $os, $repo); + printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>%s</b> repository</li><br />", $disp, $os, $repo); printf("<li>Command to enable the repository:"); printf("<pre> yum-config-manager --disable 'remi-php*'"); @@ -418,6 +424,10 @@ if ($php && $os && $type && !$err) { printf("<pre> $yum --enablerepo=%s-test install php-xxx</pre>", $repo); printf("</li><br />"); } + if (isset($phptest[$php])) { + printf("<li>PHP version <b>%s</b> packages are available in the testing repository.", $phptest[$php]); + printf("</li><br />"); + } printf("<li>Command to check the installed version and available extensions:"); printf("<pre> php --version\n php --modules</pre>"); @@ -446,7 +456,7 @@ if ($php && $os && $type && !$err) { printf("<li>Some common <b>dependencies</b> are available in <b>remi</b> repository, which need to be enabled"); printf("<pre> dnf config-manager --set-enabled remi</pre></li><br />"); - printf("<li>The <b>%s</b> collection is available in the <b>$repo</b> repository</li><br />", $scl); + printf("<li>The <b>%s</b> collection is available in the <b>$repo</b> repository, and provides PHP version <b>%s</b></li><br />", $scl, $disp); printf("<li>Command to install:"); printf("<pre> $yum install %s</pre>", $scl); printf("</li><br />"); @@ -469,6 +479,10 @@ if ($php && $os && $type && !$err) { printf("<pre> $yum --enablerepo=remi-test install %s-php-xxx</pre>", $scl); printf("</li><br />"); } + if (isset($phptest[$php])) { + printf("<li>PHP version <b>%s</b> packages are available in the testing repository.", $phptest[$php]); + printf("</li><br />"); + } printf("<li>Command to check the installed version and available extensions:"); printf("<pre> %s --version\n %s --modules</pre>", $scl, $scl); |