Don't enable bundled modules if they have problems (#536)

pull/539/head 1.4.27
Michele Locati 2022-03-24 14:43:54 +01:00 committed by GitHub
parent 2fb64ef1b5
commit fa7e016989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}