Check that compiled bundled PHP modules work (#534)

Test: bcmath
pull/535/head 1.4.25
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
1 changed files with 5 additions and 0 deletions

View File

@ -2129,6 +2129,11 @@ EOF
esac esac
;; ;;
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. # Fetch a tar.gz file, extract it and returns the path of the extracted folder.