Compiling php with pecl intl support

#1
I am using PHP 5.3.8 on my server. PHP's INTL plugin is supposed to be included in the source, however "function_exists("normalizer_normalize");" fails. Any reason why?

/usr/local/lsws/lsphp5/bin/lsphp -i | grep intl fails as well.
 
Last edited:

webizen

Well-Known Member
#2
intl gets enabled in the bundled version (php 5.3 +) with --enable-intl when compile php.

check if you have '--enable-intl' in compile option

/path/to/lsphp5 -i | grep intl (e.g. /usr/local/lsws/fcgi-bin/lsphp5)

if you don't see '--enable-intl', it is not enabled.
 
Last edited:
#3
check if intl is disabled in php

/path/to/lsphp5 -i | grep intl (e.g. /usr/local/lsws/fcgi-bin/lsphp5)
Yup, I edited my post to include that it doesn't display anything. If I understood what I've read, intl should be included by default in php 5.3.x+.

Checked your edit. Thanks.
 
Last edited:

webizen

Well-Known Member
#4
according to php manuel (http://www.php.net/manual/en/intl.installation.php), it is not enabled by default.

This extension may be installed using the bundled version as of PHP 5.3.0, or as a PECL extension as of PHP 5.2.0. In other words, there are two methods to install the intl extension.

Information for installing this PECL extension may be found ...

Alternatively, --enable-intl will enable the bundled version while compiling PHP.
 
Last edited:
Top