Intl with this version of ICU for Symfony 3 with PHP 7.1

I installed Symfony 3.2.6. When I check /config.php in the browser, I get the message:

the built-in version of ICU installed on your system is outdated (57.1) and does not match the ICU data bundled with Symfony (58.2) To get the latest internationalization data, update the ICU system package and the internal PHP extension.

First tried updating the ICU extensions as described here Update the ICU extension in xampp? I downloaded the appropriate package from PECL http://site.icu-project.org/download/58 , copied to the apache / bin folder, restarted apache, but PHP is loading the old version of ICU 57.1.

Then I tried to update php_intl.dll ftom https://pecl.php.net/package/intl , but I did not find a suitable package for php 7.

Do you have the proper wat to speed up ICU lib in php 7?

+5
source share
1 answer

This is a really nasty problem. If there is no newer compatible version of PHP, and since updating the internal extensions did not help, I think you need to compile PHP with a custom version of ICU:

Here you can check ICU versions: http://source.icu-project.org/repos/icu/icu/tags/

Check out cd source ./configure --prefix=$(pwd)/../build (sets a custom install dir) make (build) make install (install to "build" dir) 

Now that the ICU is built, you need to run the PHP "configure" script and point it to the build directory:

 ./configure ... --enable-intl --with-icu-dir=/path/to/icu/build 
+2
source

Source: https://habr.com/ru/post/1265942/


All Articles