From 74eb6cc20e0ddd8bf141424fbd4704477046c11c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 24 Mar 2022 12:22:11 +0100 Subject: [PATCH] Check that compiled bundled PHP modules work (#534) Test: bcmath --- install-php-extensions | 5 +++++ 1 file changed, 5 insertions(+) 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.