From 661ad4bf75a922a7dace4e84776dc0666997484b Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 9 Sep 2023 08:53:07 +0530 Subject: [PATCH] Fix enabling latest pecl extensions --- src/scripts/extensions/add_extensions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/extensions/add_extensions.sh b/src/scripts/extensions/add_extensions.sh index fc9d796a..6ad98709 100644 --- a/src/scripts/extensions/add_extensions.sh +++ b/src/scripts/extensions/add_extensions.sh @@ -203,7 +203,7 @@ add_pecl_extension() { pecl_version=$(get_pecl_version "$extension" "$pecl_version") fi ext_version=$(php -r "echo phpversion('$extension');") - if [ "${ext_version/-/}" = "$pecl_version" ]; then + if check_extension "$extension" && [[ -z "$pecl_version" || (-n "$pecl_version" && "${ext_version/-/}" == "$pecl_version") ]]; then add_log "${tick:?}" "$extension" "Enabled" else [ -n "$pecl_version" ] && pecl_version="-$pecl_version"