diff options
author | Xinchen Hui <laruence@php.net> | 2012-06-07 14:32:47 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-06-07 14:32:47 +0800 |
commit | 83542dcf3b84767cc950e2def7b35ec3b4839edc (patch) | |
tree | 70fe951f81e55467d344329d97cab3abec08eeef /ext/intl/msgformat/msgformat_attr.c | |
parent | e118a0794a93e54d97ac42636e56c9b7e5904ecd (diff) | |
parent | 6ecc9f1d9dfbfa264725aabcf52b75e31ce59deb (diff) | |
download | php-git-83542dcf3b84767cc950e2def7b35ec3b4839edc.tar.gz |
Merge branch 'PHP-5.3' into PHP-5.4
By Gustavo André dos Santos Lopes (4) and others
via Felipe Pena (1) and Xinchen Hui (1)
* PHP-5.3:
Remove unused codes
based on microsoft's description,the direct convert from FILETIME struct to __int64 is unsafe.
Fix ext/intl build on ICU < 4.8
Optimization in ext/intl/msgformat
Fixed tests in ext/intl
Changed XFAILed collator_get_sort_key.phpt
Diffstat (limited to 'ext/intl/msgformat/msgformat_attr.c')
-rwxr-xr-x | ext/intl/msgformat/msgformat_attr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_attr.c b/ext/intl/msgformat/msgformat_attr.c index cf34665142..ed2dae27d1 100755 --- a/ext/intl/msgformat/msgformat_attr.c +++ b/ext/intl/msgformat/msgformat_attr.c @@ -82,11 +82,13 @@ PHP_FUNCTION( msgfmt_set_pattern ) intl_convert_utf8_to_utf16(&spattern, &spattern_len, value, value_len, &INTL_DATA_ERROR_CODE(mfo)); INTL_METHOD_CHECK_STATUS(mfo, "Error converting pattern to UTF-16" ); +#ifdef MSG_FORMAT_QUOTE_APOS if(msgformat_fix_quotes(&spattern, &spattern_len, &INTL_DATA_ERROR_CODE(mfo)) != SUCCESS) { intl_error_set( NULL, U_INVALID_FORMAT_ERROR, "msgfmt_set_pattern: error converting pattern to quote-friendly format", 0 TSRMLS_CC ); RETURN_FALSE; } +#endif /* TODO: add parse error information */ umsg_applyPattern(MSG_FORMAT_OBJECT(mfo), spattern, spattern_len, NULL, &INTL_DATA_ERROR_CODE(mfo)); |