-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension intl uses old ICU version #1534
Comments
Bref 1.7.23 is not the latest version, do you see the same problem with Bref v2? |
I don't have a Bref v2 version in production, but I just tested it with the docker image docker run -v ./php:/var/task/php -it bref/php-80-fpm-dev:2 php -a The volume is for the var_dump(INTL_ICU_VERSION); |
I just tested it with the PHP 8.1 image ( |
Thank you, that's noted! We should upgrade the version in https://github.com/brefphp/aws-lambda-layers PRs welcome! |
Thanks! I just tried to update this package in the local |
Ah, this is probably Amazon Linux being outdated again :/ This is why we compile some dependencies, for example: https://github.com/brefphp/aws-lambda-layers/blob/main/php-80/Dockerfile#L72-L105 So that we get more up to date versions. |
Yeah, it is so old that we cannot even use NumberFormatter::CURRENCY_ACCOUNTING to format money amounts correctly. So on top of security issues, there is this. |
Yeah, it definitely seems more like Amazon Linux is thoroughly outdated. I wonder how people can tolerate that? Because, yeah, updating with Anyway, It seems that we should explicitly tell the major version we wish to use. For example, there is a package for ICU v60 - https://pkgs.org/search/?q=libicu yum install libicu60
> installs version 60.3-2.amzn2.0.4 The problem then is to install that version prior to compile PHP itself and linking it properly. Yup, and it seems a bunch of other components like LIBXML2 probably need to be adjusted as well. Also, we must not forget Wow... |
TBH PHP 8.0 has been EOL for almost a year now, it's no longer updated. I don't think we'll upgrade the ICU version in the layers. I'll mark this as closed here to clean up the tracker, feel free to continue the discussion (and we can always reopen if needed). |
@mnapoli it applies to ALL php versions... this is a GENERIC issue with Amazon Linux image. The issue should be renamed to "Extension intl uses old ICU version" |
Got it. |
Description:
I use the PHP
intl
extension to format a number with currency. This does not work as expected, which is due to a bug in the ICU library, which was fixed a few years ago. So, I looked at which version Bref uses.According to the constant
INTL_ICU_VERSION
(docs) the version 50.2 is used.ICU version
50.2
was released in Apr 11, 2019. (more than 4 years old) -> Release noteHow to reproduce:
Bref version: 1.7.23
Layers:
PHP version: 8.0.28
The text was updated successfully, but these errors were encountered: