From e0915ac169f7672477f00132693d011d56a2fc0d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 10 Jun 2016 18:47:03 +0200 Subject: wizard: add php 7.1 --- wizard/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wizard/index.php b/wizard/index.php index 57e82b67..727772ec 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -29,12 +29,14 @@ $types = [ 'scl' => 'Multiple versions', ]; $phpvers = [ + '7.1' => false, '7.0' => 'remi-php70', '5.6' => 'remi-php56', '5.5' => 'remi-php55', '5.4' => 'remi', ]; $phpname = [ + '7.1' => '7.1.0-dev (for testing, not ready for production)', '7.0' => '7.0.7 (active support until Dec 2017)', '5.6' => '5.6.22 (active support until Dec 2016)', '5.5' => '5.5.36 (security support until Jul 2016)', @@ -155,7 +157,10 @@ if ($php && $os && $type && !$err) { if ($type == 'base') { printf("
  • You want a single version which means replacing base packages from the distribution

  • "); - if (version_compare($php, $osvers[$os], '<')) { + 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], '<')) { printf("
  • Sorry, but PHP version older than %s are not available for %s, try multiple versions.

  • ", $osvers[$os], $os); } else if (version_compare($php, $osvers[$os], '=')) { -- cgit