From 62d47dd238c5828cab36c52957f2aaa7928eacb6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 13 Jan 2022 05:22:02 +0530 Subject: [PATCH] Fix enabling xml extension for PECL --- src/scripts/darwin.sh | 1 + src/scripts/linux.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index d65d241e..4401e2cf 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -104,6 +104,7 @@ add_devtools() { # Function to handle request to add PECL. add_pecl() { + enable_extension xml extension >/dev/null 2>&1 configure_pecl >/dev/null 2>&1 pear_version=$(get_tool_version "pecl" "version") add_log "${tick:?}" "PECL" "Found PECL $pear_version" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index a1338880..79008386 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -88,8 +88,9 @@ add_extension() { add_devtools() { tool=$1 if ! command -v "$tool$version" >/dev/null; then - install_packages "php$version-dev" "php$version-xml" + install_packages "php$version-dev" fi + add_extension xml extension >/dev/null 2>&1 switch_version "phpize" "php-config" add_log "${tick:?}" "$tool" "Added $tool $semver" }