Author: Shivam Mathur (shivammathur)
Date: 2025-09-10T11:06:57+05:30
Commit:
https://github.com/php/web-php/commit/081771ab2d30628ee99ec215503121ae0ded7107
Raw diff:
https://github.com/php/web-php/commit/081771ab2d30628ee99ec215503121ae0ded7107.diff
Fix docker instructions for web in downloads page
Changed paths:
A include/download-instructions/osx-docker-cli.php
A include/download-instructions/osx-docker-web.php
A include/download-instructions/windows-docker-cli.php
A include/download-instructions/windows-docker-web.php
D include/download-instructions/osx-docker.php
D include/download-instructions/windows-docker.php
M downloads-get-instructions.php
Diff:
diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php
index aabc617978..83b34d237e 100644
--- a/downloads-get-instructions.php
+++ b/downloads-get-instructions.php
@@ -55,7 +55,11 @@
break;
case 'osx':
case 'windows':
- $file = "{$options['osvariant']}";
+ if($options['osvariant'] === "{$options['os']}-docker") {
+ $file = "{$options['osvariant']}-{$options['usage']}";
+ } else {
+ $file = "{$options['osvariant']}";
+ }
break;
}
diff --git a/include/download-instructions/osx-docker.php
b/include/download-instructions/osx-docker-cli.php
similarity index 100%
rename from include/download-instructions/osx-docker.php
rename to include/download-instructions/osx-docker-cli.php
diff --git a/include/download-instructions/osx-docker-web.php
b/include/download-instructions/osx-docker-web.php
new file mode 120000
index 0000000000..ded3a794ad
--- /dev/null
+++ b/include/download-instructions/osx-docker-web.php
@@ -0,0 +1 @@
+linux-docker-web-community.php
\ No newline at end of file
diff --git a/include/download-instructions/windows-docker.php
b/include/download-instructions/windows-docker-cli.php
similarity index 100%
rename from include/download-instructions/windows-docker.php
rename to include/download-instructions/windows-docker-cli.php
diff --git a/include/download-instructions/windows-docker-web.php
b/include/download-instructions/windows-docker-web.php
new file mode 120000
index 0000000000..ded3a794ad
--- /dev/null
+++ b/include/download-instructions/windows-docker-web.php
@@ -0,0 +1 @@
+linux-docker-web-community.php
\ No newline at end of file