File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ install_icu() {
1111# Function to add ext-intl with the given version of ICU
1212add_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
You can’t perform that action at this time.
0 commit comments