From deb31af403b5640c6339fc92807a3330a4cf41a3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 20 Dec 2021 19:35:45 +0530 Subject: [PATCH] Fix http support on 8.1 Fallback to source/pecl if http extension package is missing --- src/scripts/ext/http.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/scripts/ext/http.sh b/src/scripts/ext/http.sh index 5cdaeff6..fbe9c27c 100644 --- a/src/scripts/ext/http.sh +++ b/src/scripts/ext/http.sh @@ -80,11 +80,9 @@ add_http_latest() { if ! check_extension http; then add_http_dependencies if [ "$os" = "Linux" ]; then - if ! [[ "${version:?}" =~ ${old_versions:?}|${nightly_versions:?} ]]; then - install_packages "php$version-http" - else - add_http_helper "$(get_http_version)" "$os" - fi + package="php$version-http" + add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php + (check_package "$package" && install_packages "$package") || add_http_helper "$(get_http_version)" "$os" else if ! [[ "${version:?}" =~ ${old_versions:?} ]]; then add_brew_extension pecl_http extension