From f8c4b5f6a1fd2f89e09ab32e4fd228def550dca3 Mon Sep 17 00:00:00 2001 From: Vijay Saayi Ravinuthala Date: Thu, 13 Aug 2026 18:57:17 +0530 Subject: [PATCH 1/2] Fix PHP source download URLs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d7ca9fd8-e8a1-4226-a6be-4fd8d285fb9c --- images/runtime/php-fpm/8.1/bullseye.Dockerfile | 2 +- images/runtime/php-fpm/8.2/bullseye.Dockerfile | 2 +- images/runtime/php-fpm/8.3/bookworm.Dockerfile | 2 +- images/runtime/php-fpm/8.3/bullseye.Dockerfile | 2 +- images/runtime/php-fpm/8.4/bookworm.Dockerfile | 2 +- images/runtime/php-fpm/8.4/bullseye.Dockerfile | 2 +- images/runtime/php-fpm/8.5/noble.Dockerfile | 2 +- platforms/php/prereqs/build.sh | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/images/runtime/php-fpm/8.1/bullseye.Dockerfile b/images/runtime/php-fpm/8.1/bullseye.Dockerfile index 14b4bcd478..2e2871aeb5 100644 --- a/images/runtime/php-fpm/8.1/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.1/bullseye.Dockerfile @@ -62,7 +62,7 @@ ENV GPG_KEYS 528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.2/bullseye.Dockerfile b/images/runtime/php-fpm/8.2/bullseye.Dockerfile index e4d3512202..4c9bf9b5a3 100644 --- a/images/runtime/php-fpm/8.2/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.2/bullseye.Dockerfile @@ -62,7 +62,7 @@ ENV GPG_KEYS 1198C0117593497A5EC5C199286AF1F9897469DC 39B641343D8C104B2B146DC3F9 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.3/bookworm.Dockerfile b/images/runtime/php-fpm/8.3/bookworm.Dockerfile index fb8ceec59d..d622133d44 100644 --- a/images/runtime/php-fpm/8.3/bookworm.Dockerfile +++ b/images/runtime/php-fpm/8.3/bookworm.Dockerfile @@ -60,7 +60,7 @@ ENV GPG_KEYS 1198C0117593497A5EC5C199286AF1F9897469DC AFD8691FDAEDF03BDF6E460563 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.3/bullseye.Dockerfile b/images/runtime/php-fpm/8.3/bullseye.Dockerfile index b77423b345..a9ff2ca8c3 100644 --- a/images/runtime/php-fpm/8.3/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.3/bullseye.Dockerfile @@ -62,7 +62,7 @@ ENV GPG_KEYS 1198C0117593497A5EC5C199286AF1F9897469DC AFD8691FDAEDF03BDF6E460563 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.4/bookworm.Dockerfile b/images/runtime/php-fpm/8.4/bookworm.Dockerfile index 54664e20e1..0b15e80b0a 100644 --- a/images/runtime/php-fpm/8.4/bookworm.Dockerfile +++ b/images/runtime/php-fpm/8.4/bookworm.Dockerfile @@ -60,7 +60,7 @@ ENV GPG_KEYS AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.4/bullseye.Dockerfile b/images/runtime/php-fpm/8.4/bullseye.Dockerfile index 5fb5665a3e..710193faa4 100644 --- a/images/runtime/php-fpm/8.4/bullseye.Dockerfile +++ b/images/runtime/php-fpm/8.4/bullseye.Dockerfile @@ -62,7 +62,7 @@ ENV GPG_KEYS AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256 ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION ${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256 ${PHP_SHA256} RUN set -eux; \ diff --git a/images/runtime/php-fpm/8.5/noble.Dockerfile b/images/runtime/php-fpm/8.5/noble.Dockerfile index ab898c0c3f..3ce11c8720 100644 --- a/images/runtime/php-fpm/8.5/noble.Dockerfile +++ b/images/runtime/php-fpm/8.5/noble.Dockerfile @@ -60,7 +60,7 @@ ENV GPG_KEYS="1198C0117593497A5EC5C199286AF1F9897469DC 49D9AF6BC72A80D6691719C8A ARG PHP_VERSION ARG PHP_SHA256 ENV PHP_VERSION=${PHP_VERSION} -ENV PHP_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-${PHP_VERSION}.tar.xz.asc/from/this/mirror" PHP_MD5="" +ENV PHP_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-${PHP_VERSION}.tar.xz.asc" PHP_MD5="" ENV PHP_SHA256=${PHP_SHA256} RUN set -eux; \ diff --git a/platforms/php/prereqs/build.sh b/platforms/php/prereqs/build.sh index 42a7e82ee3..78bc48d041 100755 --- a/platforms/php/prereqs/build.sh +++ b/platforms/php/prereqs/build.sh @@ -21,8 +21,8 @@ PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" PHP_CPPFLAGS="$PHP_CFLAGS" PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" -PHP_URL="https://secure.php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -PHP_ASC_URL="" # "https://secure.php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" +PHP_URL="https://www.php.net/distributions/php-$PHP_VERSION.tar.xz" +PHP_ASC_URL="" # "https://www.php.net/distributions/php-$PHP_VERSION.tar.xz.asc" GPG_KEYS=($GPG_KEYS) # Cast the string to an array PHP_MD5="" From 690f6d24bdc290f1fa9340568fe5ffcced25631a Mon Sep 17 00:00:00 2001 From: Vijay Saayi Ravinuthala Date: Thu, 13 Aug 2026 19:19:50 +0530 Subject: [PATCH 2/2] Preserve secure.php.net for PHP SDK downloads Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d7ca9fd8-e8a1-4226-a6be-4fd8d285fb9c --- platforms/php/prereqs/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/php/prereqs/build.sh b/platforms/php/prereqs/build.sh index 78bc48d041..516eee77a1 100755 --- a/platforms/php/prereqs/build.sh +++ b/platforms/php/prereqs/build.sh @@ -21,8 +21,8 @@ PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" PHP_CPPFLAGS="$PHP_CFLAGS" PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" -PHP_URL="https://www.php.net/distributions/php-$PHP_VERSION.tar.xz" -PHP_ASC_URL="" # "https://www.php.net/distributions/php-$PHP_VERSION.tar.xz.asc" +PHP_URL="https://secure.php.net/distributions/php-$PHP_VERSION.tar.xz" +PHP_ASC_URL="" # "https://secure.php.net/distributions/php-$PHP_VERSION.tar.xz.asc" GPG_KEYS=($GPG_KEYS) # Cast the string to an array PHP_MD5=""