From fb5054b163daf85f4e3cd73641c0a4b51ad32b6f Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 6 Jun 2023 19:27:14 +0530 Subject: [PATCH] Use correct prefix for zend_extensions when installed using PECL --- src/scripts/extensions/add_extensions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/extensions/add_extensions.sh b/src/scripts/extensions/add_extensions.sh index f294187a..d4cf87af 100644 --- a/src/scripts/extensions/add_extensions.sh +++ b/src/scripts/extensions/add_extensions.sh @@ -188,6 +188,7 @@ pecl_install() { yes '' 2>/dev/null | sudo "$prefix_opts" pecl install -f -D "$(parse_pecl_configure_options "$suffix_opts")" "$extension" >/dev/null 2>&1 fi local exit_code=$? + sudo pecl info "$extension" | grep -iq 'PECL-style zend extension' && prefix=zend_extension enable_extension "${extension%-*}" "$prefix" return "$exit_code" }