From fa7e01698945970666d0f83cf571de66250613a3 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 24 Mar 2022 14:43:54 +0100 Subject: [PATCH] Don't enable bundled modules if they have problems (#536) --- install-php-extensions | 1 + 1 file changed, 1 insertion(+) diff --git a/install-php-extensions b/install-php-extensions index dfe0559..cec8c8b 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2140,6 +2140,7 @@ EOF installBundledModule_err="$(php -r 'return;' 2>&1 || true)" if test -n "$installBundledModule_err"; then printf 'PHP has problems after installing the "%s" extension:\n%s\n' "$1" "$installBundledModule_err" >&2 + rm "$PHP_INI_DIR/conf.d/docker-php-ext-$1.ini" || true return 1 fi }