[php-src] Issue #10288: IntlDateFormatter fails to format with pattern "QQQQQ"

From: Date: Wed, 11 Jan 2023 11:03:31 +0000
Subject: [php-src] Issue #10288: IntlDateFormatter fails to format with pattern "QQQQQ"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243406@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10288 Author: nicolas-grekas ### Description The following code: ```php var_dump(INTL_ICU_VERSION); $f = new IntlDateFormatter('en', IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'qqqqq'); var_dump($f->format(0)); ``` Resulted in this output: ``` string(4) "70.1" string(1) "1" ``` But I expected this output instead: ``` string(4) "70.1" string(1) "1st quarter" ``` Same with "QQQQQ" as pattern. Note that this happens only on recent-enough versions of intl. On 3v4l.org, the version is older and isn't affected apparently. ### PHP Version PHP 8.1.14+ ### Operating System _No response_

« previous php.bugs (#243406) next »