Do not delete extensions, just disable them

This commit is contained in:
Shivam Mathur
2021-08-24 16:14:52 +05:30
parent f6b4601c63
commit 5402397d9f
10 changed files with 44 additions and 79 deletions

View File

@ -99,7 +99,7 @@ add_http_version() {
ext=$1
enable_http
if [ "x$(php -r "echo phpversion('http');")" != "x${ext##*-}" ]; then
remove_extension http >/dev/null
disable_extension_helper http >/dev/null
add_http_helper pecl_http-"${ext##*-}" "$os"
status="Installed and enabled"
fi

View File

@ -126,7 +126,7 @@ add_extension_from_source() {
step_log "Setup $slug"
(
add_devtools phpize >/dev/null 2>&1
delete_extension "$extension"
disable_extension_helper "$extension"
fetch_extension "$fetch"
if ! [ "$(find . -maxdepth 1 -name '*.m4' -exec grep -H 'PHP_NEW_EXTENSION' {} \; | wc -l)" != "0" ]; then
add_log "${cross:?}" "$source" "$source does not have a PHP extension"