To build the extension you need to install the » ICU library, version 4.0.0 or newer is required. As of PHP 7.4.0 ICU 50.1 or newer is required.
This extension is bundled with PHP as of PHP version 5.3.0. Alternatively, the PECL version of this extension may be used with all PHP versions greater than 5.2.0 (5.2.4+ recommended).
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.
Alternatively, --enable-intl will enable the bundled version while compiling PHP.
If your ICU is installed to a non-standard directory then you might want
to specify its location in
LD_LIBRARY_PATH environment variable so
that dynamic linker can find it:
$ export LD_LIBRARY_PATH=/opt/icu/lib
Otherwise, if PHP and ICU are installed to their default locations, then the additional options to `configure' are not needed.
|intl.use_exceptions||0||PHP_INI_ALL||Available since PHP 5.5 and PECL 3.0.0a1|
The locale that will be used in intl functions when none is specified (either by omitting the corresponding argument or by passing NULL). These are ICU locales, not system locales. The built-in ICU locales and their data can be explored at » http://demo.icu-project.org/icu-bin/locexp.
The default value is empty, which forces the usage of ICU's default locale. Once set, the ini setting cannot be reset to this default value. It is not recommended that this default be relied on, as its effective value depends on the server's environment.
The level of the error messages generated when an error occurs in ICU functions. This is a PHP error level, such as
E_WARNING. It can be
set to 0 in order to inhibit the messages. This does not affect the
return values indicating error or the values returned by intl_get_error_code or by the class specific
methods for retrieving error codes and messages. Choosing E_ERROR
will terminate the script whenever an error condition is found on intl
The default value is 0.
If set to true, an exception will be raised whenever an error occurs in an intl function. The exception will be of type IntlException. This is possibly in addition to the error message generated due to intl.error_level.
The default value is