From 8582cb12d57e91b101374880e185d5724ec97fc7 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 27 Aug 2025 07:36:01 +0530 Subject: [PATCH] Use seperate releases for shivammathur/icu-intl --- src/scripts/extensions/intl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/extensions/intl.sh b/src/scripts/extensions/intl.sh index 5acd11d0..7bae5c97 100644 --- a/src/scripts/extensions/intl.sh +++ b/src/scripts/extensions/intl.sh @@ -11,13 +11,13 @@ install_icu() { # Function to add ext-intl with the given version of ICU add_intl() { icu=$(echo "$1" | cut -d'-' -f 2) - supported_version=$(get -s -n "" https://api.github.com/repos/shivammathur/icu-intl/releases | grep -Po "${icu//./\\.}" | head -n 1) - if [ "$icu" != "$supported_version" ]; then - add_log "${cross:?}" "intl" "ICU $icu is not supported" + supported_version=$(get -s -n "" https://api.github.com/repos/shivammathur/icu-intl/releases/tags/intl-"$icu" | grep -Po "php${version?}-intl-$icu" | head -n 1) + if [ "php$version-intl-$icu" != "$supported_version" ]; then + add_log "${cross:?}" "intl" "ICU $icu is not supported for PHP $version" else [ "${ts:?}" = 'zts' ] && suffix='-zts' install_icu "$icu" >/dev/null 2>&1 - get -q -n "${ext_dir:?}/intl.so" "https://github.com/shivammathur/icu-intl/releases/download/intl/php${version:?}-intl-$icu$suffix$arch_suffix.so" + get -q -n "${ext_dir:?}/intl.so" "https://github.com/shivammathur/icu-intl/releases/download/intl-$icu/php${version:?}-intl-$icu$suffix$arch_suffix.so" enable_extension intl extension add_extension_log intl "Installed and enabled with ICU $icu" fi