summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-07-20 15:51:04 +0200
committerRemi Collet <remi@php.net>2022-07-20 15:51:04 +0200
commit61afab66f1847fdd6bfa9505e92d10d90ef13e5f (patch)
tree0eb93b0032a2cfee9c6ba6dad27f578f7a263b0e
parent86ba0b6bd2ac04127154f3cead9ba1c74d443c99 (diff)
Wizard: add arch dropdown (x86_64 only for now)
-rw-r--r--wizard/index.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/wizard/index.php b/wizard/index.php
index 5be37995..30d1de1e 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -78,6 +78,9 @@ $types = [
'base' => 'Default / Single version (simplest way)',
'scl' => 'Multiple versions simultaneously',
];
+$arches = [
+ 'x86_64' => 'x86_64',
+];
$phpvers = [
// use false when only SCL
'8.2' => false,
@@ -94,7 +97,7 @@ $phpvers = [
];
$phpname = [
':devel' => 'Development version, not ready for production',
- '8.2' => '8.2.0alpha3 (GA planed for Nov/Dec 2022)',
+ '8.2' => '8.2.0beta1 (GA planed for Nov/Dec 2022)',
':stable' => 'Stable versions - usage recommended',
'8.1' => '8.1.8 (active support until November 2023)',
'8.0' => '8.0.21 (active support until November 2022)',
@@ -112,6 +115,7 @@ $phpname = [
$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);
+$arch = (isset($_POST['arch']) && isset($types[$_POST['arch']]) ? $_POST['type'] : 'x86_64');
?>
<body>
@@ -176,6 +180,13 @@ $type = (isset($_POST['type']) && isset($types[$_POST['type']]) ? $_POST['type'
?>
</select>
</p></li>
+ <li><p>Architecture:
+ <select name='type' onChange='submit()'>
+<?php
+ foreach($arches as $archref => $name) printf("<option value='%s' %s>%s</option>", $archref, ($archref===$arch ? 'selected' : ''), $name);
+?>
+ </select>
+ </p></li>
</ul>
</form>
<h2>Wizard answer</h2>