From 01422b80858861b273e57ffd6ad3674574629e62 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 27 Apr 2017 16:29:37 +0200 Subject: Wizard: add PHP 7.2.0-dev --- wizard/index.php | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/wizard/index.php b/wizard/index.php index e23a9ea5..991f28c9 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -54,6 +54,7 @@ $types = [ 'scl' => 'Multiple versions', ]; $phpvers = [ + '7.2' => false, '7.1' => 'remi-php71', '7.0' => 'remi-php70', '5.6' => 'remi-php56', @@ -61,6 +62,7 @@ $phpvers = [ '5.4' => 'remi-php54', ]; $phpname = [ + '7.2' => '7.2.0-dev (development version, not ready for production)', '7.1' => '7.1.4 (active support until Dec 2018)', '7.0' => '7.0.18 (active support until Dec 2017)', '5.6' => '5.6.30 (security only support until Dec 2018)', @@ -135,7 +137,7 @@ if ($os) { printf("
  • %s have reached its end of life, upgrade is strongly recommended.

  • ", $os); } if (($dist == 'Fedora' && $ver>=FC_DEV) || ($dist != 'Fedora' && $ver>=EL_DEV)) { - printf("
  • %s is a development version, not ready for production.

  • ", $os); + printf("
  • WARNING: %s is a development version, not ready for production.

  • ", $os); } } if ($php && $os) { @@ -220,6 +222,7 @@ if ($php && $os && $type && !$err) { } $counter++; @file_put_contents(COUNTER, "$counter\n"); + } else { printf("
  • You want multiple versions which means using a Software Collection

  • "); $scl='php'.str_replace('.', '', $php); @@ -227,25 +230,35 @@ if ($php && $os && $type && !$err) { 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]) { + printf("
  • WARNING: PHP version %s is a development version, not ready for production.

  • ", $php); + } if ($dist=='Fedora') { - printf("
  • The %s collection is available in the remi repository

  • ", $scl); + $repo = ($phpvers[$php] ? 'remi' : 'remi-test'); // Dev version + + printf("
  • The %s collection is available in the $repo repository

  • ", $scl); printf("
  • Command to install:"); - printf("
        $yum --enablerepo=remi install %s
    ", $scl); + printf("
        $yum --enablerepo=$repo install %s
    ", $scl); printf("

  • "); printf("
  • Command to install additional packages:"); - printf("
        $yum --enablerepo=remi install %s-php-xxx
    ", $scl); + printf("
        $yum --enablerepo=$repo install %s-php-xxx
    ", $scl); } else { - printf("
  • The %s collection is available in the remi-safe repository

  • ", $scl); + $repo = ($phpvers[$php] ? 'remi-safe' : 'remi-test'); // Dev version + $opt = ($phpvers[$php] ? '' : '--enablerepo=remi-test'); // Dev version + + printf("
  • The %s collection is available in the $repo repository

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

  • "); printf("
  • Command to install additional packages:"); - printf("
        $yum install %s-php-xxx
    ", $scl); + printf("
        $yum $opt install %s-php-xxx
    ", $scl); } printf("

  • "); - printf("
  • Command to install testing packages:"); - printf("
        $yum --enablerepo=remi-test install %s-php-xxx
    ", $scl); - printf("

  • "); + if ($phpvers[$php]) { + printf("
  • Command to install testing packages:"); + printf("
        $yum --enablerepo=remi-test install %s-php-xxx
    ", $scl); + printf("

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