Skip to content

Commit

Permalink
Fix http support on 8.1
Browse files Browse the repository at this point in the history
Fallback to source/pecl if http extension package is missing
  • Loading branch information
shivammathur committed Dec 20, 2021
1 parent a6b35b1 commit deb31af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/scripts/ext/http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deb31af

Please sign in to comment.