Update ICU extension within xampp?

2019-06-03 23:42发布

问题:

I'm running xampp and I need to upgrade ICU (php_intl extension) to the latest version - I downloaded 54 from the ICU page but unsure how to go about upgrading it.

There is a bin, include and lib folder - where do I put these files and do I have to do anything else?

回答1:

To upgrade existing ICU in you XAMP installation you'll need to:

  1. copy php_intl.dll to your_xamp_folder/php
  2. copy all the icu*.dll files to your_xamp_folder/apache/bin
  3. check if extension=php_intl.dll is enabled in your_xamp_folder/php/php.ini
  4. restart Apache

Let me know if it works (i'm currently on nginx)

Edit:

  • you'll find php_intl.dll here
  • all icu*.dll files are here


回答2:

It seems like this extension has been included in PHP since version 5.3.

Try upgrading PHP, or pointing to a newer version in XAMPP.

If that isn't an option, installing extensions for PHP can be found here Extensions on Windows The php.net docs seem to cover Installing INTL

It looks like you will need to point to your extension in php.ini

Hope this helps.



标签: php xampp icu intl