1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-08 16:17:20 +00:00

Check that compiled bundled PHP modules work (#534)

Test: bcmath
This commit is contained in:
Michele Locati 2022-03-24 12:22:11 +01:00 committed by GitHub
parent 7910f27d85
commit 74eb6cc20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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