mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
Don't enable bundled modules if they have problems (#536)
This commit is contained in:
parent
2fb64ef1b5
commit
fa7e016989
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue