diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php index 650ffcaa7..09831f672 100644 --- a/downloads-get-instructions.php +++ b/downloads-get-instructions.php @@ -37,6 +37,14 @@ if (array_key_exists('multiversion', $options)) { $multiversion = $options['multiversion'] === 'Y'; } +$source = false; + +if (array_key_exists('source', $options)) { + if ($options['source'] === 'Y') { + $source = $options['source'] === 'Y'; + } +} + switch ($options['os']) { case 'linux': $defaultOrCommunity = ($options['version'] !== 'default' || $multiversion) ? 'community' : 'default'; @@ -51,16 +59,23 @@ switch ($options['os']) { break; } +if ($source) { + $file = "{$options['os']}-source"; +} + $version = $options['version']; $versionNoDot = str_replace('.', '', $version); if (file_exists(__DIR__ . "/include/download-instructions/{$file}.php")) { include __DIR__ . "/include/download-instructions/{$file}.php"; + if ($source) { + return false; + } return true; } else { ?>

-There are no instructions yet. Try using the generic installation from source. + There are no instructions yet. Try using the generic installation from source.

+

Source Tarballs

Documentation Download

PHP Logos

@@ -156,13 +157,13 @@ if (!array_key_exists('osvariant', $options) || !array_key_exists($options['osva /> - + diff --git a/include/download-instructions/linux-source.php b/include/download-instructions/linux-source.php new file mode 100644 index 000000000..47437b2c7 --- /dev/null +++ b/include/download-instructions/linux-source.php @@ -0,0 +1,4 @@ +

+ The instructions for compiling from source + on Linux are described in the PHP manual. +

diff --git a/include/download-instructions/osx-source.php b/include/download-instructions/osx-source.php new file mode 100644 index 000000000..aa81b8017 --- /dev/null +++ b/include/download-instructions/osx-source.php @@ -0,0 +1,4 @@ +

+ The instructions for compiling from source + on macOS are described in the PHP manual. +

diff --git a/include/download-instructions/windows-source.php b/include/download-instructions/windows-source.php new file mode 100644 index 000000000..beacab7f7 --- /dev/null +++ b/include/download-instructions/windows-source.php @@ -0,0 +1,4 @@ +

+ The instructions for compiling from source + on Windows are described in the PHP manual. +