When trying to format currency in my PHP 8.1 alpine docker container I always get the default locale (en_US).
$ docker run -it --rm php:8.1-fpm-alpine /bin/ash
# apk update && apk add icu-dev
# docker-php-ext-configure intl && docker-php-ext-install intl
# php -a
> $formatter = new NumberFormatter('nl_NL', NumberFormatter::CURRENCY);
> echo $formatter->getLocale();
en_US
> echo $formatter->format(1234.567);
€1,234.57
I expect getLocale() to return nl_NL and format to return €1.234,57.
If I try locale en_GB, getLocale() does return en_GB.
Any tips on writing a better question are welcome too.