From 728f1e8848262ef2dab43a1371a1c77ef7418f35 Mon Sep 17 00:00:00 2001 From: Weilin Du Date: Mon, 3 Aug 2026 13:56:57 +0800 Subject: [PATCH 1/3] Add copy button after sha1 hash to download.php --- include/download-instructions/windows-downloads.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/download-instructions/windows-downloads.php b/include/download-instructions/windows-downloads.php index a3f78d730d..aca829536e 100644 --- a/include/download-instructions/windows-downloads.php +++ b/include/download-instructions/windows-downloads.php @@ -125,7 +125,9 @@ function ws_has_sbom(string $version, string $fullVersion): bool { if (!empty($entry[$type]['path'])) { $p = $entry[$type]['path']; echo "\t", '

' . $package_names[$type] . ' ' . $entry[$type]['size'] . '
', PHP_EOL; - echo "\t", '' . ($entry[$type]['sha256'] ?? '') . '', PHP_EOL; + if (!empty($entry[$type]['sha256'])) { + echo "\t", sha256_html($entry[$type]['sha256']), PHP_EOL; + } if ($type === 'zip' && $hasSbom) { echo "\t", 'SPDX|CDX', PHP_EOL; } From 2dd7b7080894c388b785f2ae8f0ce4ef2b35d77b Mon Sep 17 00:00:00 2001 From: Weilin Du Date: Mon, 3 Aug 2026 14:01:43 +0800 Subject: [PATCH 2/3] Update button for /releases/ --- releases/index.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/releases/index.php b/releases/index.php index b960a1127c..a42b33b4eb 100644 --- a/releases/index.php +++ b/releases/index.php @@ -233,12 +233,20 @@ function mk_rel(int $major, if (!isset($src["filename"])) { continue; } - printf('

  • %s
  • ', + printf('
  • %s', $major, $src["filename"], $src["name"]); + if (isset($src['sha256'])) { + echo "
    \n", sha256_html($src['sha256']); + } + echo "
  • \n"; } foreach ($windows as $src) { - printf('
  • %s
  • ', + printf('
  • %s', ($major == 5 ? "php5" : "win32"), $src["filename"], $src["name"]); + if (isset($src['sha256'])) { + echo "
    \n", sha256_html($src['sha256']); + } + echo "
  • \n"; } } From d0866c129d3fc0bd6aae21dbbcbeff93bc2ef814 Mon Sep 17 00:00:00 2001 From: Weilin Du Date: Tue, 4 Aug 2026 12:28:35 +0800 Subject: [PATCH 3/3] revert MD5 change --- releases/index.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/releases/index.php b/releases/index.php index a42b33b4eb..b960a1127c 100644 --- a/releases/index.php +++ b/releases/index.php @@ -233,20 +233,12 @@ function mk_rel(int $major, if (!isset($src["filename"])) { continue; } - printf('
  • %s', + printf('
  • %s
  • ', $major, $src["filename"], $src["name"]); - if (isset($src['sha256'])) { - echo "
    \n", sha256_html($src['sha256']); - } - echo "\n"; } foreach ($windows as $src) { - printf('
  • %s', + printf('
  • %s
  • ', ($major == 5 ? "php5" : "win32"), $src["filename"], $src["name"]); - if (isset($src['sha256'])) { - echo "
    \n", sha256_html($src['sha256']); - } - echo "\n"; } }