phpshell icon indicating copy to clipboard operation
phpshell copied to clipboard

Intl extension version

Open colshrapnel opened this issue 8 months ago • 0 comments

echo (new MessageFormatter('pt', '{0, number, ::unit/kilometer-per-hour unit-width-full-name}'))
->format([100]);

The above code works on my local PHP 8.3 (from Sury PPA) but fails on 3v4l, throwing

Fatal error: Uncaught IntlException: msgfmt_create:
 message formatter creation failed: U_NUMBER_SKELETON_SYNTAX_ERROR in /in/tGFID:2
Stack trace:
#0 /in/tGFID(2): MessageFormatter->__construct('pt', '{0, number, ::u...')
#1 {main}
  thrown in /in/tGFID on line 2

Process exited with code 255.

I suppose it has something to do with ICU intl library version used to compile the PHP intl ext. Can it be updated on 3v4l too?

colshrapnel avatar Apr 16 '25 16:04 colshrapnel