Fix http support on 8.1

Fallback to source/pecl if http extension package is missing
This commit is contained in:
Shivam Mathur 2021-12-20 19:35:45 +05:30
parent a6b35b119b
commit deb31af403
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

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