diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-05-06 00:48:17 +0200 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-05-13 20:53:05 +0100 |
commit | 407455876e486df45a6b6c91b483060b0479a0b3 (patch) | |
tree | 3d18ce222152f7d059a2db292e4f928b5ab8d8fc /ext/intl/msgformat/msgformat_helpers.cpp | |
parent | f1621485ad7c9b02b4df42c21a472223fe106f51 (diff) | |
download | php-git-407455876e486df45a6b6c91b483060b0479a0b3.tar.gz |
Set global error if insufficient numeric args. WS.
Diffstat (limited to 'ext/intl/msgformat/msgformat_helpers.cpp')
-rwxr-xr-x | ext/intl/msgformat/msgformat_helpers.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp index 5c114e8302..503dca9ad9 100755 --- a/ext/intl/msgformat/msgformat_helpers.cpp +++ b/ext/intl/msgformat/msgformat_helpers.cpp @@ -117,14 +117,14 @@ static HashTable *umsg_parse_format(const MessagePattern& mp, UErrorCode& uec) parts_count = mp.countParts(); // See MessageFormat::cacheExplicitFormats() - /* - * Looking through the pattern, go to each arg_start part type. - * The arg-typeof that tells us the argument type (simple, complicated) - * then the next part is either the arg_name or arg number - * and then if it's simple after that there could be a part-type=arg-type + /* + * Looking through the pattern, go to each arg_start part type. + * The arg-typeof that tells us the argument type (simple, complicated) + * then the next part is either the arg_name or arg number + * and then if it's simple after that there could be a part-type=arg-type * while substring will tell us number, spellout, etc. - * If the next thing isn't an arg-type then assume string. - */ + * If the next thing isn't an arg-type then assume string. + */ /* The last two "parts" can at most be ARG_LIMIT and MSG_LIMIT * which we need not examine. */ for (int32_t i = 0; i < parts_count - 2 && U_SUCCESS(uec); i++) { @@ -226,7 +226,7 @@ static HashTable *umsg_parse_format(const MessagePattern& mp, UErrorCode& uec) } *storedType = type; - } /* visiting each part */ + } /* visiting each part */ if (U_FAILURE(uec)) { zend_hash_destroy(ret); |