diff --git a/8.2/alpine3.23/cli/Dockerfile b/8.2/alpine3.23/cli/Dockerfile index ac29ae6ed..dbcba69dc 100644 --- a/8.2/alpine3.23/cli/Dockerfile +++ b/8.2/alpine3.23/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/alpine3.23/fpm/Dockerfile b/8.2/alpine3.23/fpm/Dockerfile index 4fa4d7411..82c312579 100644 --- a/8.2/alpine3.23/fpm/Dockerfile +++ b/8.2/alpine3.23/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/alpine3.23/zts/Dockerfile b/8.2/alpine3.23/zts/Dockerfile index 5e931e285..c9241e163 100644 --- a/8.2/alpine3.23/zts/Dockerfile +++ b/8.2/alpine3.23/zts/Dockerfile @@ -124,6 +124,17 @@ RUN set -eux; \ filterdiff -x '*/NEWS' 18743.patch | patch -p1; \ rm 18743.patch; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/alpine3.24/cli/Dockerfile b/8.2/alpine3.24/cli/Dockerfile index f11ff851b..bb2ea5358 100644 --- a/8.2/alpine3.24/cli/Dockerfile +++ b/8.2/alpine3.24/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/alpine3.24/fpm/Dockerfile b/8.2/alpine3.24/fpm/Dockerfile index bd79f3313..fe61dc8fd 100644 --- a/8.2/alpine3.24/fpm/Dockerfile +++ b/8.2/alpine3.24/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/alpine3.24/zts/Dockerfile b/8.2/alpine3.24/zts/Dockerfile index e6500defe..798d25bbd 100644 --- a/8.2/alpine3.24/zts/Dockerfile +++ b/8.2/alpine3.24/zts/Dockerfile @@ -124,6 +124,17 @@ RUN set -eux; \ filterdiff -x '*/NEWS' 18743.patch | patch -p1; \ rm 18743.patch; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/bookworm/apache/Dockerfile b/8.2/bookworm/apache/Dockerfile index 9188eccd5..d4cec927b 100644 --- a/8.2/bookworm/apache/Dockerfile +++ b/8.2/bookworm/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/bookworm/cli/Dockerfile b/8.2/bookworm/cli/Dockerfile index fd18ec274..b1f7ef7e5 100644 --- a/8.2/bookworm/cli/Dockerfile +++ b/8.2/bookworm/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/bookworm/fpm/Dockerfile b/8.2/bookworm/fpm/Dockerfile index 28baf46c6..1679783eb 100644 --- a/8.2/bookworm/fpm/Dockerfile +++ b/8.2/bookworm/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/bookworm/zts/Dockerfile b/8.2/bookworm/zts/Dockerfile index 7b24d7793..2e7fe7f03 100644 --- a/8.2/bookworm/zts/Dockerfile +++ b/8.2/bookworm/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/trixie/apache/Dockerfile b/8.2/trixie/apache/Dockerfile index 264211922..d95512fd4 100644 --- a/8.2/trixie/apache/Dockerfile +++ b/8.2/trixie/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/trixie/cli/Dockerfile b/8.2/trixie/cli/Dockerfile index e4ec81179..7caf8357e 100644 --- a/8.2/trixie/cli/Dockerfile +++ b/8.2/trixie/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/trixie/fpm/Dockerfile b/8.2/trixie/fpm/Dockerfile index 4e85b894e..ef842e8dd 100644 --- a/8.2/trixie/fpm/Dockerfile +++ b/8.2/trixie/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.2/trixie/zts/Dockerfile b/8.2/trixie/zts/Dockerfile index b5ccd6fd5..c88b08038 100644 --- a/8.2/trixie/zts/Dockerfile +++ b/8.2/trixie/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.23/cli/Dockerfile b/8.3/alpine3.23/cli/Dockerfile index 00398ac69..443d7bb0c 100644 --- a/8.3/alpine3.23/cli/Dockerfile +++ b/8.3/alpine3.23/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.23/fpm/Dockerfile b/8.3/alpine3.23/fpm/Dockerfile index 16494af53..265df6bb2 100644 --- a/8.3/alpine3.23/fpm/Dockerfile +++ b/8.3/alpine3.23/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.23/zts/Dockerfile b/8.3/alpine3.23/zts/Dockerfile index 282556f8c..63e04e162 100644 --- a/8.3/alpine3.23/zts/Dockerfile +++ b/8.3/alpine3.23/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.24/cli/Dockerfile b/8.3/alpine3.24/cli/Dockerfile index b066a0944..0db3a8e5a 100644 --- a/8.3/alpine3.24/cli/Dockerfile +++ b/8.3/alpine3.24/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.24/fpm/Dockerfile b/8.3/alpine3.24/fpm/Dockerfile index 31fb39230..9c61a75b1 100644 --- a/8.3/alpine3.24/fpm/Dockerfile +++ b/8.3/alpine3.24/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/alpine3.24/zts/Dockerfile b/8.3/alpine3.24/zts/Dockerfile index e83c6abc7..014b0a718 100644 --- a/8.3/alpine3.24/zts/Dockerfile +++ b/8.3/alpine3.24/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/bookworm/apache/Dockerfile b/8.3/bookworm/apache/Dockerfile index bfc696f82..e44df729c 100644 --- a/8.3/bookworm/apache/Dockerfile +++ b/8.3/bookworm/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/bookworm/cli/Dockerfile b/8.3/bookworm/cli/Dockerfile index 53b79d9df..65250e30e 100644 --- a/8.3/bookworm/cli/Dockerfile +++ b/8.3/bookworm/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/bookworm/fpm/Dockerfile b/8.3/bookworm/fpm/Dockerfile index c1197d1b2..3cb4634d3 100644 --- a/8.3/bookworm/fpm/Dockerfile +++ b/8.3/bookworm/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/bookworm/zts/Dockerfile b/8.3/bookworm/zts/Dockerfile index daa085c26..e9339b1d0 100644 --- a/8.3/bookworm/zts/Dockerfile +++ b/8.3/bookworm/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/trixie/apache/Dockerfile b/8.3/trixie/apache/Dockerfile index d43c594ac..6b72ba83c 100644 --- a/8.3/trixie/apache/Dockerfile +++ b/8.3/trixie/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/trixie/cli/Dockerfile b/8.3/trixie/cli/Dockerfile index 2b32399d8..c199332bb 100644 --- a/8.3/trixie/cli/Dockerfile +++ b/8.3/trixie/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/trixie/fpm/Dockerfile b/8.3/trixie/fpm/Dockerfile index 1a85e4063..484f8b16f 100644 --- a/8.3/trixie/fpm/Dockerfile +++ b/8.3/trixie/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.3/trixie/zts/Dockerfile b/8.3/trixie/zts/Dockerfile index 862514b76..69304be57 100644 --- a/8.3/trixie/zts/Dockerfile +++ b/8.3/trixie/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.23/cli/Dockerfile b/8.4-rc/alpine3.23/cli/Dockerfile index 7e950083a..834c08459 100644 --- a/8.4-rc/alpine3.23/cli/Dockerfile +++ b/8.4-rc/alpine3.23/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.23/fpm/Dockerfile b/8.4-rc/alpine3.23/fpm/Dockerfile index a203c3628..33026fcad 100644 --- a/8.4-rc/alpine3.23/fpm/Dockerfile +++ b/8.4-rc/alpine3.23/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.23/zts/Dockerfile b/8.4-rc/alpine3.23/zts/Dockerfile index 9b792dd05..f726bd46f 100644 --- a/8.4-rc/alpine3.23/zts/Dockerfile +++ b/8.4-rc/alpine3.23/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.24/cli/Dockerfile b/8.4-rc/alpine3.24/cli/Dockerfile index 50228178b..00386dfca 100644 --- a/8.4-rc/alpine3.24/cli/Dockerfile +++ b/8.4-rc/alpine3.24/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.24/fpm/Dockerfile b/8.4-rc/alpine3.24/fpm/Dockerfile index 12191e7e3..b162a59ac 100644 --- a/8.4-rc/alpine3.24/fpm/Dockerfile +++ b/8.4-rc/alpine3.24/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/alpine3.24/zts/Dockerfile b/8.4-rc/alpine3.24/zts/Dockerfile index 03c491007..b0e128255 100644 --- a/8.4-rc/alpine3.24/zts/Dockerfile +++ b/8.4-rc/alpine3.24/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/bookworm/apache/Dockerfile b/8.4-rc/bookworm/apache/Dockerfile index 07169d2ec..55bf17253 100644 --- a/8.4-rc/bookworm/apache/Dockerfile +++ b/8.4-rc/bookworm/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/bookworm/cli/Dockerfile b/8.4-rc/bookworm/cli/Dockerfile index c8ed14e2e..1506def10 100644 --- a/8.4-rc/bookworm/cli/Dockerfile +++ b/8.4-rc/bookworm/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/bookworm/fpm/Dockerfile b/8.4-rc/bookworm/fpm/Dockerfile index 5b842f000..d116b7cc8 100644 --- a/8.4-rc/bookworm/fpm/Dockerfile +++ b/8.4-rc/bookworm/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/bookworm/zts/Dockerfile b/8.4-rc/bookworm/zts/Dockerfile index 405aecfc2..5d0ba01ca 100644 --- a/8.4-rc/bookworm/zts/Dockerfile +++ b/8.4-rc/bookworm/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/trixie/apache/Dockerfile b/8.4-rc/trixie/apache/Dockerfile index a64783b95..ec3aefa66 100644 --- a/8.4-rc/trixie/apache/Dockerfile +++ b/8.4-rc/trixie/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/trixie/cli/Dockerfile b/8.4-rc/trixie/cli/Dockerfile index 12a5f8da3..5ca67e1fc 100644 --- a/8.4-rc/trixie/cli/Dockerfile +++ b/8.4-rc/trixie/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/trixie/fpm/Dockerfile b/8.4-rc/trixie/fpm/Dockerfile index 81c5b3938..67a1a204e 100644 --- a/8.4-rc/trixie/fpm/Dockerfile +++ b/8.4-rc/trixie/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4-rc/trixie/zts/Dockerfile b/8.4-rc/trixie/zts/Dockerfile index b7f5b79ad..1e9572aba 100644 --- a/8.4-rc/trixie/zts/Dockerfile +++ b/8.4-rc/trixie/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.23/cli/Dockerfile b/8.4/alpine3.23/cli/Dockerfile index 339aacae0..2611118a2 100644 --- a/8.4/alpine3.23/cli/Dockerfile +++ b/8.4/alpine3.23/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.23/fpm/Dockerfile b/8.4/alpine3.23/fpm/Dockerfile index 2b3c41d46..6ab815f07 100644 --- a/8.4/alpine3.23/fpm/Dockerfile +++ b/8.4/alpine3.23/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.23/zts/Dockerfile b/8.4/alpine3.23/zts/Dockerfile index e0d546d75..0c88d6964 100644 --- a/8.4/alpine3.23/zts/Dockerfile +++ b/8.4/alpine3.23/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.24/cli/Dockerfile b/8.4/alpine3.24/cli/Dockerfile index b34ec07cb..320921c49 100644 --- a/8.4/alpine3.24/cli/Dockerfile +++ b/8.4/alpine3.24/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.24/fpm/Dockerfile b/8.4/alpine3.24/fpm/Dockerfile index 9753b9413..7444a961c 100644 --- a/8.4/alpine3.24/fpm/Dockerfile +++ b/8.4/alpine3.24/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/alpine3.24/zts/Dockerfile b/8.4/alpine3.24/zts/Dockerfile index 2626154dd..93c791bc3 100644 --- a/8.4/alpine3.24/zts/Dockerfile +++ b/8.4/alpine3.24/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/bookworm/apache/Dockerfile b/8.4/bookworm/apache/Dockerfile index 11c153e2d..f50628e6b 100644 --- a/8.4/bookworm/apache/Dockerfile +++ b/8.4/bookworm/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/bookworm/cli/Dockerfile b/8.4/bookworm/cli/Dockerfile index 9d2fe4076..423cb3cff 100644 --- a/8.4/bookworm/cli/Dockerfile +++ b/8.4/bookworm/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/bookworm/fpm/Dockerfile b/8.4/bookworm/fpm/Dockerfile index 2a3476424..b1ed66b8c 100644 --- a/8.4/bookworm/fpm/Dockerfile +++ b/8.4/bookworm/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/bookworm/zts/Dockerfile b/8.4/bookworm/zts/Dockerfile index a150d1a2b..0b86174ac 100644 --- a/8.4/bookworm/zts/Dockerfile +++ b/8.4/bookworm/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/trixie/apache/Dockerfile b/8.4/trixie/apache/Dockerfile index 65051fd71..6333f3cc5 100644 --- a/8.4/trixie/apache/Dockerfile +++ b/8.4/trixie/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/trixie/cli/Dockerfile b/8.4/trixie/cli/Dockerfile index 9b3924b8e..a51b79889 100644 --- a/8.4/trixie/cli/Dockerfile +++ b/8.4/trixie/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/trixie/fpm/Dockerfile b/8.4/trixie/fpm/Dockerfile index 9a0a0bc0f..5994ce3c8 100644 --- a/8.4/trixie/fpm/Dockerfile +++ b/8.4/trixie/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.4/trixie/zts/Dockerfile b/8.4/trixie/zts/Dockerfile index 86b91217c..9ea180b66 100644 --- a/8.4/trixie/zts/Dockerfile +++ b/8.4/trixie/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.23/cli/Dockerfile b/8.5/alpine3.23/cli/Dockerfile index 54f3543b0..d3971cda1 100644 --- a/8.5/alpine3.23/cli/Dockerfile +++ b/8.5/alpine3.23/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.23/fpm/Dockerfile b/8.5/alpine3.23/fpm/Dockerfile index cdf2960d5..1ed1c1d7c 100644 --- a/8.5/alpine3.23/fpm/Dockerfile +++ b/8.5/alpine3.23/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.23/zts/Dockerfile b/8.5/alpine3.23/zts/Dockerfile index a01546fa8..d997e83bc 100644 --- a/8.5/alpine3.23/zts/Dockerfile +++ b/8.5/alpine3.23/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.24/cli/Dockerfile b/8.5/alpine3.24/cli/Dockerfile index 93d38cb7e..0e97a7ecd 100644 --- a/8.5/alpine3.24/cli/Dockerfile +++ b/8.5/alpine3.24/cli/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.24/fpm/Dockerfile b/8.5/alpine3.24/fpm/Dockerfile index aa59f938c..65b9c2b4b 100644 --- a/8.5/alpine3.24/fpm/Dockerfile +++ b/8.5/alpine3.24/fpm/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/alpine3.24/zts/Dockerfile b/8.5/alpine3.24/zts/Dockerfile index 76c545076..7a05f86e5 100644 --- a/8.5/alpine3.24/zts/Dockerfile +++ b/8.5/alpine3.24/zts/Dockerfile @@ -116,6 +116,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/bookworm/apache/Dockerfile b/8.5/bookworm/apache/Dockerfile index 6e3f5164c..6abee3372 100644 --- a/8.5/bookworm/apache/Dockerfile +++ b/8.5/bookworm/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/bookworm/cli/Dockerfile b/8.5/bookworm/cli/Dockerfile index 9f869febd..1e11bfbb1 100644 --- a/8.5/bookworm/cli/Dockerfile +++ b/8.5/bookworm/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/bookworm/fpm/Dockerfile b/8.5/bookworm/fpm/Dockerfile index 9e49d56a7..1b246d50e 100644 --- a/8.5/bookworm/fpm/Dockerfile +++ b/8.5/bookworm/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/bookworm/zts/Dockerfile b/8.5/bookworm/zts/Dockerfile index c743d2b54..7965dc62b 100644 --- a/8.5/bookworm/zts/Dockerfile +++ b/8.5/bookworm/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/trixie/apache/Dockerfile b/8.5/trixie/apache/Dockerfile index 4e429736b..aa9a4ace3 100644 --- a/8.5/trixie/apache/Dockerfile +++ b/8.5/trixie/apache/Dockerfile @@ -188,6 +188,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/trixie/cli/Dockerfile b/8.5/trixie/cli/Dockerfile index 704f99e7a..8abfc9d17 100644 --- a/8.5/trixie/cli/Dockerfile +++ b/8.5/trixie/cli/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/trixie/fpm/Dockerfile b/8.5/trixie/fpm/Dockerfile index 2629f4d68..cc231857f 100644 --- a/8.5/trixie/fpm/Dockerfile +++ b/8.5/trixie/fpm/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.5/trixie/zts/Dockerfile b/8.5/trixie/zts/Dockerfile index 685852a22..7cd7f7c3b 100644 --- a/8.5/trixie/zts/Dockerfile +++ b/8.5/trixie/zts/Dockerfile @@ -127,6 +127,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.23/cli/Dockerfile b/8.6-rc/alpine3.23/cli/Dockerfile index 9624b2a02..2533095c2 100644 --- a/8.6-rc/alpine3.23/cli/Dockerfile +++ b/8.6-rc/alpine3.23/cli/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.23/fpm/Dockerfile b/8.6-rc/alpine3.23/fpm/Dockerfile index e731d4935..c1df4c8bf 100644 --- a/8.6-rc/alpine3.23/fpm/Dockerfile +++ b/8.6-rc/alpine3.23/fpm/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.23/zts/Dockerfile b/8.6-rc/alpine3.23/zts/Dockerfile index 270dba67a..6fb1527bd 100644 --- a/8.6-rc/alpine3.23/zts/Dockerfile +++ b/8.6-rc/alpine3.23/zts/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.24/cli/Dockerfile b/8.6-rc/alpine3.24/cli/Dockerfile index 4cf0042fb..c9d97b771 100644 --- a/8.6-rc/alpine3.24/cli/Dockerfile +++ b/8.6-rc/alpine3.24/cli/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.24/fpm/Dockerfile b/8.6-rc/alpine3.24/fpm/Dockerfile index 009c6938a..23c0aa4d4 100644 --- a/8.6-rc/alpine3.24/fpm/Dockerfile +++ b/8.6-rc/alpine3.24/fpm/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/alpine3.24/zts/Dockerfile b/8.6-rc/alpine3.24/zts/Dockerfile index 53f3cde15..cf40f4a55 100644 --- a/8.6-rc/alpine3.24/zts/Dockerfile +++ b/8.6-rc/alpine3.24/zts/Dockerfile @@ -115,6 +115,17 @@ RUN set -eux; \ docker-php-source extract; \ cd /usr/src/php; \ gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/bookworm/apache/Dockerfile b/8.6-rc/bookworm/apache/Dockerfile index 622d60c18..035736eb4 100644 --- a/8.6-rc/bookworm/apache/Dockerfile +++ b/8.6-rc/bookworm/apache/Dockerfile @@ -187,6 +187,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/bookworm/cli/Dockerfile b/8.6-rc/bookworm/cli/Dockerfile index a9733a994..38918b3da 100644 --- a/8.6-rc/bookworm/cli/Dockerfile +++ b/8.6-rc/bookworm/cli/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/bookworm/fpm/Dockerfile b/8.6-rc/bookworm/fpm/Dockerfile index b29e75907..1cc261f45 100644 --- a/8.6-rc/bookworm/fpm/Dockerfile +++ b/8.6-rc/bookworm/fpm/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/bookworm/zts/Dockerfile b/8.6-rc/bookworm/zts/Dockerfile index 9477f08be..5cb6ed295 100644 --- a/8.6-rc/bookworm/zts/Dockerfile +++ b/8.6-rc/bookworm/zts/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/trixie/apache/Dockerfile b/8.6-rc/trixie/apache/Dockerfile index 2a9fef8de..60369db6d 100644 --- a/8.6-rc/trixie/apache/Dockerfile +++ b/8.6-rc/trixie/apache/Dockerfile @@ -187,6 +187,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/trixie/cli/Dockerfile b/8.6-rc/trixie/cli/Dockerfile index 5c2386bab..6843ea01d 100644 --- a/8.6-rc/trixie/cli/Dockerfile +++ b/8.6-rc/trixie/cli/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/trixie/fpm/Dockerfile b/8.6-rc/trixie/fpm/Dockerfile index 7ef58840f..d1d9b4b18 100644 --- a/8.6-rc/trixie/fpm/Dockerfile +++ b/8.6-rc/trixie/fpm/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/8.6-rc/trixie/zts/Dockerfile b/8.6-rc/trixie/zts/Dockerfile index 436721dd0..9ee590024 100644 --- a/8.6-rc/trixie/zts/Dockerfile +++ b/8.6-rc/trixie/zts/Dockerfile @@ -126,6 +126,17 @@ RUN set -eux; \ if [ ! -d /usr/include/curl ]; then \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \ diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 3d2742ce6..a2da3cf0e 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -346,6 +346,17 @@ RUN set -eux; \ ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; \ fi; \ {{ ) end -}} + case "$gnuArch" in \ + 'i686-linux-'*) \ + # php zend jit assumes SSE registers, xmm0-7, are available (and "Pentium4"/SSE2 is a reasonable baseline) + # https://github.com/php/php-src/pull/22832 + # so, allow it and use SSE/SSE2 floating-point unit instead of the legacy stack + export \ + CFLAGS="$CFLAGS -msse2 -mfpmath=sse" \ + CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" \ + ; \ + ;; \ + esac; \ test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; \ ./configure \ --build="$gnuArch" \