Use correct prefix for zend_extensions when installed using PECL

This commit is contained in:
Shivam Mathur 2023-06-06 19:27:14 +05:30
parent 3f2a402846
commit fb5054b163
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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 yes '' 2>/dev/null | sudo "$prefix_opts" pecl install -f -D "$(parse_pecl_configure_options "$suffix_opts")" "$extension" >/dev/null 2>&1
fi fi
local exit_code=$? local exit_code=$?
sudo pecl info "$extension" | grep -iq 'PECL-style zend extension' && prefix=zend_extension
enable_extension "${extension%-*}" "$prefix" enable_extension "${extension%-*}" "$prefix"
return "$exit_code" return "$exit_code"
} }