-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Update php #12137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update php #12137
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes: - docker-library/php@9ebf005: Merge pull request docker-library/php#1278 from infosiftr/conditional-strip - docker-library/php@af4cd1a: Make "strip" in "docker-php-ext-install" conditional on "ZEND_DEBUG_BUILD"
Diff for 1a7e23b:diff --git a/_bashbrew-cat b/_bashbrew-cat
index b9ef040..d36d76f 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -3,190 +3,190 @@ GitRepo: https://github.com/docker-library/php.git
Tags: 7.4.28-apache-bullseye, 7.4-apache-bullseye, 7-apache-bullseye, 7.4.28-apache, 7.4-apache, 7-apache
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/bullseye/apache
Tags: 7.4.28-apache-buster, 7.4-apache-buster, 7-apache-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/buster/apache
Tags: 7.4.28-cli-alpine3.14, 7.4-cli-alpine3.14, 7-cli-alpine3.14, 7.4.28-alpine3.14, 7.4-alpine3.14, 7-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.14/cli
Tags: 7.4.28-cli-alpine3.15, 7.4-cli-alpine3.15, 7-cli-alpine3.15, 7.4.28-alpine3.15, 7.4-alpine3.15, 7-alpine3.15, 7.4.28-cli-alpine, 7.4-cli-alpine, 7-cli-alpine, 7.4.28-alpine, 7.4-alpine, 7-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.15/cli
Tags: 7.4.28-cli-bullseye, 7.4-cli-bullseye, 7-cli-bullseye, 7.4.28-bullseye, 7.4-bullseye, 7-bullseye, 7.4.28-cli, 7.4-cli, 7-cli, 7.4.28, 7.4, 7
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/bullseye/cli
Tags: 7.4.28-cli-buster, 7.4-cli-buster, 7-cli-buster, 7.4.28-buster, 7.4-buster, 7-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/buster/cli
Tags: 7.4.28-fpm-alpine3.14, 7.4-fpm-alpine3.14, 7-fpm-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.14/fpm
Tags: 7.4.28-fpm-alpine3.15, 7.4-fpm-alpine3.15, 7-fpm-alpine3.15, 7.4.28-fpm-alpine, 7.4-fpm-alpine, 7-fpm-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.15/fpm
Tags: 7.4.28-fpm-bullseye, 7.4-fpm-bullseye, 7-fpm-bullseye, 7.4.28-fpm, 7.4-fpm, 7-fpm
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/bullseye/fpm
Tags: 7.4.28-fpm-buster, 7.4-fpm-buster, 7-fpm-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/buster/fpm
Tags: 7.4.28-zts-alpine3.14, 7.4-zts-alpine3.14, 7-zts-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.14/zts
Tags: 7.4.28-zts-alpine3.15, 7.4-zts-alpine3.15, 7-zts-alpine3.15, 7.4.28-zts-alpine, 7.4-zts-alpine, 7-zts-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/alpine3.15/zts
Tags: 7.4.28-zts-bullseye, 7.4-zts-bullseye, 7-zts-bullseye, 7.4.28-zts, 7.4-zts, 7-zts
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/bullseye/zts
Tags: 7.4.28-zts-buster, 7.4-zts-buster, 7-zts-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b62fa33a7198244ea296e5f1845f99ff6363743c
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 7.4/buster/zts
Tags: 8.0.17-apache-bullseye, 8.0-apache-bullseye, 8.0.17-apache, 8.0-apache
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/bullseye/apache
Tags: 8.0.17-apache-buster, 8.0-apache-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/buster/apache
Tags: 8.0.17-cli-alpine3.14, 8.0-cli-alpine3.14, 8.0.17-alpine3.14, 8.0-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/alpine3.14/cli
Tags: 8.0.17-cli-alpine3.15, 8.0-cli-alpine3.15, 8.0.17-alpine3.15, 8.0-alpine3.15, 8.0.17-cli-alpine, 8.0-cli-alpine, 8.0.17-alpine, 8.0-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/alpine3.15/cli
Tags: 8.0.17-cli-bullseye, 8.0-cli-bullseye, 8.0.17-bullseye, 8.0-bullseye, 8.0.17-cli, 8.0-cli, 8.0.17, 8.0
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/bullseye/cli
Tags: 8.0.17-cli-buster, 8.0-cli-buster, 8.0.17-buster, 8.0-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/buster/cli
Tags: 8.0.17-fpm-alpine3.14, 8.0-fpm-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/alpine3.14/fpm
Tags: 8.0.17-fpm-alpine3.15, 8.0-fpm-alpine3.15, 8.0.17-fpm-alpine, 8.0-fpm-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/alpine3.15/fpm
Tags: 8.0.17-fpm-bullseye, 8.0-fpm-bullseye, 8.0.17-fpm, 8.0-fpm
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/bullseye/fpm
Tags: 8.0.17-fpm-buster, 8.0-fpm-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/buster/fpm
Tags: 8.0.17-zts-bullseye, 8.0-zts-bullseye, 8.0.17-zts, 8.0-zts
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/bullseye/zts
Tags: 8.0.17-zts-buster, 8.0-zts-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 0d8ed27a95f620519e7e9ee554f766fdeeae27af
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.0/buster/zts
Tags: 8.1.4-apache-bullseye, 8.1-apache-bullseye, 8-apache-bullseye, apache-bullseye, 8.1.4-apache, 8.1-apache, 8-apache, apache
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/bullseye/apache
Tags: 8.1.4-apache-buster, 8.1-apache-buster, 8-apache-buster, apache-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/buster/apache
Tags: 8.1.4-cli-alpine3.14, 8.1-cli-alpine3.14, 8-cli-alpine3.14, cli-alpine3.14, 8.1.4-alpine3.14, 8.1-alpine3.14, 8-alpine3.14, alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/alpine3.14/cli
Tags: 8.1.4-cli-alpine3.15, 8.1-cli-alpine3.15, 8-cli-alpine3.15, cli-alpine3.15, 8.1.4-alpine3.15, 8.1-alpine3.15, 8-alpine3.15, alpine3.15, 8.1.4-cli-alpine, 8.1-cli-alpine, 8-cli-alpine, cli-alpine, 8.1.4-alpine, 8.1-alpine, 8-alpine, alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/alpine3.15/cli
Tags: 8.1.4-cli-bullseye, 8.1-cli-bullseye, 8-cli-bullseye, cli-bullseye, 8.1.4-bullseye, 8.1-bullseye, 8-bullseye, bullseye, 8.1.4-cli, 8.1-cli, 8-cli, cli, 8.1.4, 8.1, 8, latest
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/bullseye/cli
Tags: 8.1.4-cli-buster, 8.1-cli-buster, 8-cli-buster, cli-buster, 8.1.4-buster, 8.1-buster, 8-buster, buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/buster/cli
Tags: 8.1.4-fpm-alpine3.14, 8.1-fpm-alpine3.14, 8-fpm-alpine3.14, fpm-alpine3.14
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/alpine3.14/fpm
Tags: 8.1.4-fpm-alpine3.15, 8.1-fpm-alpine3.15, 8-fpm-alpine3.15, fpm-alpine3.15, 8.1.4-fpm-alpine, 8.1-fpm-alpine, 8-fpm-alpine, fpm-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/alpine3.15/fpm
Tags: 8.1.4-fpm-bullseye, 8.1-fpm-bullseye, 8-fpm-bullseye, fpm-bullseye, 8.1.4-fpm, 8.1-fpm, 8-fpm, fpm
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/bullseye/fpm
Tags: 8.1.4-fpm-buster, 8.1-fpm-buster, 8-fpm-buster, fpm-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/buster/fpm
Tags: 8.1.4-zts-bullseye, 8.1-zts-bullseye, 8-zts-bullseye, zts-bullseye, 8.1.4-zts, 8.1-zts, 8-zts, zts
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/bullseye/zts
Tags: 8.1.4-zts-buster, 8.1-zts-buster, 8-zts-buster, zts-buster
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: a41dc76cb007ac64177d6999f7be91aae149ee9e
+GitCommit: af4cd1a2184cb2026431cddb5377391d19728fd4
Directory: 8.1/buster/zts
diff --git a/php_7-alpine/docker-php-ext-install b/php_7-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-alpine/docker-php-ext-install
+++ b/php_7-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-alpine3.14/docker-php-ext-install b/php_7-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-alpine3.14/docker-php-ext-install
+++ b/php_7-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-apache-buster/docker-php-ext-install b/php_7-apache-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-apache-buster/docker-php-ext-install
+++ b/php_7-apache-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-apache/docker-php-ext-install b/php_7-apache/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-apache/docker-php-ext-install
+++ b/php_7-apache/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-buster/docker-php-ext-install b/php_7-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-buster/docker-php-ext-install
+++ b/php_7-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-fpm-alpine/docker-php-ext-install b/php_7-fpm-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-fpm-alpine/docker-php-ext-install
+++ b/php_7-fpm-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-fpm-alpine3.14/docker-php-ext-install b/php_7-fpm-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-fpm-alpine3.14/docker-php-ext-install
+++ b/php_7-fpm-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-fpm-buster/docker-php-ext-install b/php_7-fpm-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-fpm-buster/docker-php-ext-install
+++ b/php_7-fpm-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-fpm/docker-php-ext-install b/php_7-fpm/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-fpm/docker-php-ext-install
+++ b/php_7-fpm/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-zts-alpine/docker-php-ext-install b/php_7-zts-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-zts-alpine/docker-php-ext-install
+++ b/php_7-zts-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-zts-alpine3.14/docker-php-ext-install b/php_7-zts-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-zts-alpine3.14/docker-php-ext-install
+++ b/php_7-zts-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-zts-buster/docker-php-ext-install b/php_7-zts-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-zts-buster/docker-php-ext-install
+++ b/php_7-zts-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7-zts/docker-php-ext-install b/php_7-zts/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7-zts/docker-php-ext-install
+++ b/php_7-zts/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_7/docker-php-ext-install b/php_7/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_7/docker-php-ext-install
+++ b/php_7/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-alpine/docker-php-ext-install b/php_8.0-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-alpine/docker-php-ext-install
+++ b/php_8.0-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-alpine3.14/docker-php-ext-install b/php_8.0-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-alpine3.14/docker-php-ext-install
+++ b/php_8.0-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-apache-buster/docker-php-ext-install b/php_8.0-apache-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-apache-buster/docker-php-ext-install
+++ b/php_8.0-apache-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-apache/docker-php-ext-install b/php_8.0-apache/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-apache/docker-php-ext-install
+++ b/php_8.0-apache/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-buster/docker-php-ext-install b/php_8.0-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-buster/docker-php-ext-install
+++ b/php_8.0-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-fpm-alpine/docker-php-ext-install b/php_8.0-fpm-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-fpm-alpine/docker-php-ext-install
+++ b/php_8.0-fpm-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-fpm-alpine3.14/docker-php-ext-install b/php_8.0-fpm-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-fpm-alpine3.14/docker-php-ext-install
+++ b/php_8.0-fpm-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-fpm-buster/docker-php-ext-install b/php_8.0-fpm-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-fpm-buster/docker-php-ext-install
+++ b/php_8.0-fpm-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-fpm/docker-php-ext-install b/php_8.0-fpm/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-fpm/docker-php-ext-install
+++ b/php_8.0-fpm/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-zts-buster/docker-php-ext-install b/php_8.0-zts-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-zts-buster/docker-php-ext-install
+++ b/php_8.0-zts-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0-zts/docker-php-ext-install b/php_8.0-zts/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0-zts/docker-php-ext-install
+++ b/php_8.0-zts/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_8.0/docker-php-ext-install b/php_8.0/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_8.0/docker-php-ext-install
+++ b/php_8.0/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_alpine/docker-php-ext-install b/php_alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_alpine/docker-php-ext-install
+++ b/php_alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_alpine3.14/docker-php-ext-install b/php_alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_alpine3.14/docker-php-ext-install
+++ b/php_alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_apache-buster/docker-php-ext-install b/php_apache-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_apache-buster/docker-php-ext-install
+++ b/php_apache-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_apache/docker-php-ext-install b/php_apache/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_apache/docker-php-ext-install
+++ b/php_apache/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_buster/docker-php-ext-install b/php_buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_buster/docker-php-ext-install
+++ b/php_buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_fpm-alpine/docker-php-ext-install b/php_fpm-alpine/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_fpm-alpine/docker-php-ext-install
+++ b/php_fpm-alpine/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_fpm-alpine3.14/docker-php-ext-install b/php_fpm-alpine3.14/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_fpm-alpine3.14/docker-php-ext-install
+++ b/php_fpm-alpine3.14/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_fpm-buster/docker-php-ext-install b/php_fpm-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_fpm-buster/docker-php-ext-install
+++ b/php_fpm-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_fpm/docker-php-ext-install b/php_fpm/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_fpm/docker-php-ext-install
+++ b/php_fpm/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_latest/docker-php-ext-install b/php_latest/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_latest/docker-php-ext-install
+++ b/php_latest/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_zts-buster/docker-php-ext-install b/php_zts-buster/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_zts-buster/docker-php-ext-install
+++ b/php_zts-buster/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \
diff --git a/php_zts/docker-php-ext-install b/php_zts/docker-php-ext-install
index cc742e9..aa0b96c 100755
--- a/php_zts/docker-php-ext-install
+++ b/php_zts/docker-php-ext-install
@@ -103,15 +103,26 @@ fi
popDir="$PWD"
for ext in $exts; do
cd "$ext"
+
[ -e Makefile ] || docker-php-ext-configure "$ext"
+
make -j"$j"
+
+ if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
+ # only "strip" modules if we aren't using a debug build of PHP
+ # (none of our builds are debug builds, but PHP might be recompiled with "--enable-debug" configure option)
+ # https://github.com/docker-library/php/issues/1268
+
find modules \
-maxdepth 1 \
-name '*.so' \
-exec sh -euxc ' \
strip --strip-all "$@" || :
' -- '{}' +
+ fi
+
make -j"$j" install
+
find modules \
-maxdepth 1 \
-name '*.so' \Relevant Maintainers: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes: