[php-src] Issue #8817: Intl not working with ICU 71.1 in Alpine 3.16
| From: | cdaguerre | Date: | Fri, 17 Jun 2022 13:47:41 +0000 |
| Subject: | [php-src] Issue #8817: Intl not working with ICU 71.1 in Alpine 3.16 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241754@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8817
Author: cdaguerre
### Description
I'm not sure this is the right place to post this because it might be related to alpine
package...
The
intl extension doesn't work with the
[icu-dev@71.1](https://pkgs.alpinelinux.org/package/v3.16/main/x86/icu-dev) package in
Alpine 3.16.
Using [icu-dev@69.1](https://pkgs.alpinelinux.org/package/v3.15/main/x86/icu-dev) from
the Alpine 3.15 repository works fine though (even in 3.16).
The following code:
```php
<?php
$formatter = new \NumberFormatter('fr_FR', \NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(12.34, 'EUR');
```
Resulted in this output:
```
€12.34
```
But I expected this output instead:
```
12.34€
```
### PHP Version
PHP 8.0.20
### Operating System
Alpine 3.16