summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat.c
diff options
context:
space:
mode:
authorGustavo Lopes <glopes@safelinq.com>2012-07-23 16:38:27 +0200
committerGustavo Lopes <glopes@safelinq.com>2012-07-23 16:38:27 +0200
commitc052b9c99ac09069d3f7c8ca5904c499ec842336 (patch)
treee584f68eab1bf1369b642e1008af4598647d143b /ext/intl/msgformat/msgformat.c
parent0dfcc3e798cd54714f792bf7507c37b96146ee1b (diff)
downloadphp-git-c052b9c99ac09069d3f7c8ca5904c499ec842336.tar.gz
Do not fetch default locale once on minit or rinit
The default locale is now requested to ICU when it's needed by using intl_get_default_locale().
Diffstat (limited to 'ext/intl/msgformat/msgformat.c')
-rwxr-xr-xext/intl/msgformat/msgformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/msgformat/msgformat.c b/ext/intl/msgformat/msgformat.c
index 0a01204fae..45e5c7158b 100755
--- a/ext/intl/msgformat/msgformat.c
+++ b/ext/intl/msgformat/msgformat.c
@@ -61,7 +61,7 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
}
if(locale_len == 0) {
- locale = INTL_G(default_locale);
+ locale = intl_locale_get_default(TSRMLS_C);
}
#ifdef MSG_FORMAT_QUOTE_APOS