Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -2947,6 +2947,14 @@ installIonCubeLoader() {
installIonCubeLoader_versionDisplayName="v$installIonCubeLoader_version"
fi
installIonCubeLoader_url="${installIonCubeLoader_url}.tar.gz"
# ionCube answers a loader it doesn't publish (for example musl on aarch64) with an HTML page and a 200 status
installIonCubeLoader_contentType="$(curl $IPE_CURL_FLAGS -sSLfI -o /dev/null -w '%{content_type}' "$installIonCubeLoader_url" 2>/dev/null || true)"
case "$installIonCubeLoader_contentType" in
text/html*)
printf 'ionCube does not provide a loader for this platform (%s returns a web page, not an archive)\n' "$installIonCubeLoader_url" >&2
exit 1
;;
esac
# See https://www.ioncube.com/loaders.php
printf 'Downloading ionCube Loader (%s)... ' "$installIonCubeLoader_versionDisplayName"
installIonCubeLoader_dir="$(getPackageSource $installIonCubeLoader_url)"
Expand Down