Author: Shivam Mathur (shivammathur)
Committer: GitHub (web-flow)
Pusher: shivammathur
Date: 2026-11-23T15:05:36+05:30

Commit: 
https://github.com/php/web-php/commit/a4cb20239bdaecd71e7ddb904198112d68d189ba
Raw diff: 
https://github.com/php/web-php/commit/a4cb20239bdaecd71e7ddb904198112d68d189ba.diff

Update Windows download instructions for Visual Studio (#2112)

Changed paths:
  M  include/download-instructions/windows-downloads.php


Diff:

diff --git a/include/download-instructions/windows-downloads.php 
b/include/download-instructions/windows-downloads.php
index 5d0e64da3b..8a6aefa6b8 100644
--- a/include/download-instructions/windows-downloads.php
+++ b/include/download-instructions/windows-downloads.php
@@ -63,17 +63,23 @@ function ws_has_sbom(string $version, string $fullVersion): 
bool {
 }
 
 $hasSbom = ws_has_sbom($version, $fullVersion);
-
-echo <<<'HTML'
+$displayVersion = htmlspecialchars($version);
+$visualStudio = match ($version) {
+       '8.2', '8.3' => '2019 (VS16)',
+       '8.4', '8.5' => '2022 (VS17)',
+       '8.6' => '2026 (VS18)',
+};
+
+echo <<<HTML
 <strong>Architecture</strong>
 <p>It is recommended to use x64 builds of PHP as almost all Windows 
installations currently support x64.</p>
 <strong>Thread Safety</strong>
 <p>NTS builds are for single-threaded use cases, typically PHP running via 
FastCGI or on the CLI. TS builds support multithreaded SAPIs and are intended 
for PHP loaded as a web server module. So, if you want to use PHP as FastCGI 
with IIS, use the Non-Thread Safe (NTS) builds of PHP, or if you want to use 
the Apache HTTP Server, use the Thread Safe (TS) builds of PHP.</p>
 <strong>Visual Studio Versions</strong>
-<p>The builds below are built using Visual Studio 2019 (VS16) or Visual Studio 
2022 (VS17) compiler. They require the Visual C++ Redistributable for Visual 
Studio 2015-2022 <a 
href="https://aka.ms/vs/17/release/vc_redist.x64.exe";>x64</a> or <a 
href="https://aka.ms/vs/17/release/vc_redist.x86.exe";>x86</a> installed.</p>
+<p>The PHP {$displayVersion} builds below are built using Visual Studio 
{$visualStudio} compiler. They require the Visual C++ v14 Redistributable <a 
href="https://aka.ms/vc14/vc_redist.x64.exe";>x64</a> or <a 
href="https://aka.ms/vc14/vc_redist.x86.exe";>x86</a> installed.</p>
 HTML;
 
-echo '<h3>PHP ' . htmlspecialchars($version) . ' (' . $fullVersion . ')</h3>';
+echo '<h3>PHP ' . $displayVersion . ' (' . $fullVersion . ')</h3>';
 
 if (!empty($verBlock['source']['path'])) {
        echo '<p><strong><a href="' . $baseDownloads . 
$verBlock['source']['path'] . '">Download source code</a></strong> <span 
class="size">' . ($verBlock['source']['size'] ?? '') . '</span></p>', PHP_EOL;

Reply via email to