Skip to content
Permalink
Browse files

update php intl extension libicu library version for centos 7 in 123.…

…09beta01

PHP Intl extension's libicu library version in CentOS 7 is version 50.1 which is quite old. For CentOS 7 systems update libicu to version 62.1 via Remi yum repo when centmin.sh menu option 5 PHP recompile/update routine is run. Change log for libicu http://site.icu-project.org/download

Check PHP Intl extension's ICU version after centmin.sh menu option 5 updates to read version 62.1 instead of 50.1.2 version which is CentOS 7 usual defaults

php --ri intl

intl

Internationalization support => enabled
version => 1.1.0
ICU version => 62.1
ICU Data version => 62.1
ICU TZData version => 2018e
ICU Unicode version => 11.0

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0
intl.use_exceptions => 0 => 0
  • Loading branch information...
centminmod committed Feb 21, 2019
1 parent 4e9f1e6 commit 5ee7ebb8fd00192b1d81fecfaae9e97c1abb685c
Showing with 14 additions and 3 deletions.
  1. +14 −3 inc/php_configure.inc
@@ -463,14 +463,25 @@ if [[ ! -f /usr/bin/xslt-config ]]; then
fi

if [[ ! -f /usr/bin/icu-config ]]; then
if [ -f /etc/yum.repos.d/rpmforge.repo ]; then
yum -q -y install libicu libicu-devel --disablerepo=rpmforge,epel
sar_call
if [[ "$CENTOS_SEVEN" = '7' && -f /etc/yum.repos.d/remi.repo && -f /etc/yum.repos.d/rpmforge.repo ]]; then
yum -q -y install libicu62 libicu62-devel --enablerepo=remi --disablerepo=rpmforge,epel
sar_call
elif [[ "$CENTOS_SEVEN" = '7' && -f /etc/yum.repos.d/remi.repo && ! -f /etc/yum.repos.d/rpmforge.repo ]]; then
yum -q -y install libicu62 libicu62-devel --enablerepo=remi --disablerepo=epel
sar_call
elif [ -f /etc/yum.repos.d/rpmforge.repo ]; then
yum -q -y install libicu libicu-devel --disablerepo=rpmforge,epel
sar_call
else
yum -q -y install libicu libicu-devel --disablerepo=epel
sar_call
fi
fi
if [[ "$CENTOS_SEVEN" = '7' && -f /etc/yum.repos.d/remi.repo && -f /usr/bin/icu-config && "$(/usr/bin/icu-config --version)" != '62.1' ]]; then
# update centos 7 libicu 50.1 version to remi yum repo provided libicu 62.1 version
yum -y swap libicu libicu62 --enablerepo=remi --disableplugin=priorities
yum -y install libicu62-devel --enablerepo=remi --disableplugin=priorities
fi

if [[ ! -f /usr/bin/pspell-config ]]; then
if [ -f /etc/yum.repos.d/rpmforge.repo ]; then

0 comments on commit 5ee7ebb

Please sign in to comment.
You can’t perform that action at this time.