mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix http support on 8.1
Fallback to source/pecl if http extension package is missing
This commit is contained in:
parent
a6b35b119b
commit
deb31af403
@ -80,11 +80,9 @@ add_http_latest() {
|
|||||||
if ! check_extension http; then
|
if ! check_extension http; then
|
||||||
add_http_dependencies
|
add_http_dependencies
|
||||||
if [ "$os" = "Linux" ]; then
|
if [ "$os" = "Linux" ]; then
|
||||||
if ! [[ "${version:?}" =~ ${old_versions:?}|${nightly_versions:?} ]]; then
|
package="php$version-http"
|
||||||
install_packages "php$version-http"
|
add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php
|
||||||
else
|
(check_package "$package" && install_packages "$package") || add_http_helper "$(get_http_version)" "$os"
|
||||||
add_http_helper "$(get_http_version)" "$os"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
if ! [[ "${version:?}" =~ ${old_versions:?} ]]; then
|
if ! [[ "${version:?}" =~ ${old_versions:?} ]]; then
|
||||||
add_brew_extension pecl_http extension
|
add_brew_extension pecl_http extension
|
||||||
|
Loading…
Reference in New Issue
Block a user