summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_helpers.cpp
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-04-11 15:00:58 +0200
committerAnatol Belski <ab@php.net>2016-04-11 15:01:22 +0200
commit28b6f66a77d660412766b6da88d01377cbdd04a1 (patch)
treee1271c9281b5b124de8e020abbb3d5059c5d0cfc /ext/intl/msgformat/msgformat_helpers.cpp
parentf62943edc8f9803b900cc44585beff18cf1361eb (diff)
downloadphp-git-28b6f66a77d660412766b6da88d01377cbdd04a1.tar.gz
Fixed bug #70484 selectordinal doesn't work with named parameters
Diffstat (limited to 'ext/intl/msgformat/msgformat_helpers.cpp')
-rw-r--r--ext/intl/msgformat/msgformat_helpers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp
index ed63105fa7..ce7899edd9 100644
--- a/ext/intl/msgformat/msgformat_helpers.cpp
+++ b/ext/intl/msgformat/msgformat_helpers.cpp
@@ -264,6 +264,10 @@ static HashTable *umsg_parse_format(MessageFormatter_object *mfo,
type = Formattable::kDouble;
} else if (argType == UMSGPAT_ARG_TYPE_SELECT) {
type = Formattable::kString;
+#if U_ICU_VERSION_MAJOR_NUM >= 50
+ } else if (argType == UMSGPAT_ARG_TYPE_SELECTORDINAL) {
+ type = Formattable::kDouble;
+#endif
} else {
type = Formattable::kString;
}