|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-11 13:02 UTC] ab@php.net
[2016-04-11 13:02 UTC] ab@php.net
-Status: Open
+Status: Closed
[2016-06-02 10:21 UTC] ab@php.net
[2016-07-20 11:32 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 18:00:01 2025 UTC |
Description: ------------ intl 51.2 errors out when trying to create a pattern with named parameter {n} (or any other name) used in "selectordinal". It should work as in case with "plural" and all other patterns. Positional placeholder {0} works as expected. Test script: --------------- <?php $m = new MessageFormatter('en', '{n, selectordinal, one{#-one} two{#-two} few{#-few} other{#-other}}'); var_dump($m->format(array('n' => 42))); Expected result: ---------------- 42-two Actual result: -------------- {n, selectordinal, one{#-one} two{#-two} few{#-few} other{#-other}}