Skip to content

Commit 8582cb1

Browse files
committed
Use seperate releases for shivammathur/icu-intl
1 parent ec406be commit 8582cb1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/scripts/extensions/intl.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ install_icu() {
1111
# Function to add ext-intl with the given version of ICU
1212
add_intl() {
1313
icu=$(echo "$1" | cut -d'-' -f 2)
14-
supported_version=$(get -s -n "" https://api.github.com/repos/shivammathur/icu-intl/releases | grep -Po "${icu//./\\.}" | head -n 1)
15-
if [ "$icu" != "$supported_version" ]; then
16-
add_log "${cross:?}" "intl" "ICU $icu is not supported"
14+
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)
15+
if [ "php$version-intl-$icu" != "$supported_version" ]; then
16+
add_log "${cross:?}" "intl" "ICU $icu is not supported for PHP $version"
1717
else
1818
[ "${ts:?}" = 'zts' ] && suffix='-zts'
1919
install_icu "$icu" >/dev/null 2>&1
20-
get -q -n "${ext_dir:?}/intl.so" "https://github.com/shivammathur/icu-intl/releases/download/intl/php${version:?}-intl-$icu$suffix$arch_suffix.so"
20+
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"
2121
enable_extension intl extension
2222
add_extension_log intl "Installed and enabled with ICU $icu"
2323
fi

0 commit comments

Comments
 (0)