diff --git a/install-php-extensions b/install-php-extensions index 8348020..8c8ea28 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2129,6 +2129,11 @@ EOF esac ;; esac + 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 + return 1 + fi } # Fetch a tar.gz file, extract it and returns the path of the extracted folder.