Upgrading ICU version?
Posted by: cheeseus (89.25.86.---)
Date: March 22, 2024 04:42PM

I have discovered some bugs in PHP/ICU when using various localisation features with my language (Bulgarian). I reported something I believe is a bug to the PHP devs and I received a reply to check and update if necessary my ICU version.

So, I found out that my ICU version is 72.1 (on PHP 8.3.3), whereas the latest one is 74. So, I should upgrade to see it the issue is fixed in it.

But I have no idea how to do this. I've tried reading a few articles but the language they use is above my knowledge.

Could I have some simple step-by-step instructions please?

Options: ReplyQuote
Re: Upgrading ICU version?
Posted by: cheeseus (89.25.86.---)
Date: March 22, 2024 05:07PM

I just upgraded to PHP 8.3.4 but it is still using this old version of ICU...

Options: ReplyQuote
Re: Upgrading ICU version?
Posted by: Otomatic (Moderator)
Date: March 23, 2024 09:03AM

I can't do anything about it.

I use the PHP binaries as supplied by https://windows.php.net/download/ and only update the ICU loads when there is an evolution.

For information, appearance of ICU versions versus PHP versions:

60 (PHP 7.2), 61 (PHP 7.2.5), 62 (PHP 7.2.8), 63 (PHP 7.2.12), 64 (PHP 7.2.20), 65 (PHP 7.4.0), 66 (PHP 7.4.6), 68 (PHP 8.0.0), 70 (PHP 8.1.0), 71 (PHP 8.2.0), 72 (PHP 8.3.0)

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Upgrading ICU version?
Posted by: Otomatic (Moderator)
Date: March 23, 2024 10:32AM

Hi,

Here https://github.com/unicode-org/icu/releases/tag/release-74-2

There is a file icu4c-74_2-Win64-MSVC2019.zip

Once unzipped, the bin64 folder contains the files:
icudt74.dll
icuin74.dll
icuio74.dll
icutu74.dll
icuuc74.dll

But it's not enough to put these files in PHP's bin folder and delete the same ...72.dll files, because you'd also have to modify the php_intl.dll extension, which only php.net can do.

You'll also need to modify Wampserver's config.inc.php file for 74 to be taken into account.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Upgrading ICU version?
Posted by: cheeseus (89.25.86.---)
Date: March 23, 2024 02:09PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> Here
> [url=https://github.com/unicode-org/icu/releases/t
> ag/release-74-2]https://github.com/unicode-org/icu
> /releases/tag/release-74-2[/url]
>
> There is a file
> [url=https://github.com/unicode-org/icu/releases/d
> ownload/release-74-2/icu4c-74_2-Win64-MSVC2019.zip
> ]icu4c-74_2-Win64-MSVC2019.zip[/url]
>
> Once unzipped, the bin64 folder contains the
> files:
> icudt74.dll
> icuin74.dll
> icuio74.dll
> icutu74.dll
> icuuc74.dll
>
> But it's not enough to put these files in PHP's
> bin folder and delete the same ...72.dll files,
> because you'd also have to modify the php_intl.dll
> extension, which only php.net can do.
>
> You'll also need to modify Wampserver's
> config.inc.php file for 74 to be taken into
> account.


Thanks, I tried simply copying the new files for v. 74-2 and deleting the old ones for v. 72. It doesn't work like that smiling smiley A new php_intl.dll file needs to be compiled. Let's hope the guy who creates the PHP versions will update ICU at some point.

But even this won't help (in v. 74-2) because the Bulgarian file is the same in it as in v. 72. I checked. I've submitted an issue with the ICU team. Let's hope they will fix the total of three problems I found in a future version.

Options: ReplyQuote


Sorry, only registered users may post in this forum.