Topic: Old icu version in php package?

Hi Remi,

In the php-3.8.5 package, the included intl extension is built against ICU version 3.6. This version seems to contain a bug. On our server (CentOS 5.7, php from your repository), it randomly fails to parse certain input.

The people over at #php.pecl @efnet advised me to upgrade ICU and rebuild php. I've tried to use your SRPMS to rebuild the php package, but haven't been successful yet.

Is there any chance you might include a newer version of ICU?

Alexander

Re: Old icu version in php package?

Have you a bug link ? or a simple script to reproduce this issue ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Old icu version in php package?

I do not have bug link. I can produce the issue with the following script:

<?php
Locale::setDefault('nl-NL');

$formatter = new \NumberFormatter(\Locale::getDefault(), \NumberFormatter::DECIMAL);
$formatter->setAttribute(\NumberFormatter::GROUPING_USED, false);

$value = "800,3";

var_dump($formatter->parse($value));

The output of the script will be something like this:

~ $ while true; do curl http://example.org/intl.php; done
float(800.3)
float(0)
float(0)
float(800.3)
float(0)
float(0)
float(0)
float(0)
float(800.3)
float(800.3)
float(800.3)
float(0)

Thank you for your time. smile