diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-06 11:36:00 +0200 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-06 11:36:00 +0200 |
commit | 52d541a3149d4a21e9f45fa80b26c338636f92c4 (patch) | |
tree | f20229e3df4029130e5f497b204952b344696c82 /ext/intl/msgformat/msgformat.c | |
parent | 45b3fa4deea739c8a3bf8778efac2f748a2685bc (diff) | |
download | php-git-52d541a3149d4a21e9f45fa80b26c338636f92c4.tar.gz |
Optimization in ext/intl/msgformat
Don't transform the string to make it apostrophe friendly in ICU 4.8+
as that it is now the default.
Diffstat (limited to 'ext/intl/msgformat/msgformat.c')
-rwxr-xr-x | ext/intl/msgformat/msgformat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat.c b/ext/intl/msgformat/msgformat.c index 84f14de1bd..0a01204fae 100755 --- a/ext/intl/msgformat/msgformat.c +++ b/ext/intl/msgformat/msgformat.c @@ -64,9 +64,11 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS) locale = INTL_G(default_locale); } +#ifdef MSG_FORMAT_QUOTE_APOS if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to quote-friendly format"); } +#endif if ((mfo)->mf_data.orig_format) { msgformat_data_free(&mfo->mf_data TSRMLS_CC); |