diff options
author | Anatol Belski <ab@php.net> | 2016-07-05 15:58:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-07-05 15:58:55 +0200 |
commit | 4a522e3b17959792a0cb1abd155bbcfc97d5f0d5 (patch) | |
tree | 8a2ff76d8724f3d87ed9ae8078806255d0bcfd02 /ext/intl/dateformat | |
parent | 28ed30df53ad694530961b4fc817900190bbbb86 (diff) | |
download | php-git-4a522e3b17959792a0cb1abd155bbcfc97d5f0d5.tar.gz |
fix error text
Diffstat (limited to 'ext/intl/dateformat')
-rw-r--r-- | ext/intl/dateformat/dateformat_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/dateformat/dateformat_parse.c b/ext/intl/dateformat/dateformat_parse.c index 81a432e1af..a8331777bb 100644 --- a/ext/intl/dateformat/dateformat_parse.c +++ b/ext/intl/dateformat/dateformat_parse.c @@ -149,7 +149,7 @@ PHP_FUNCTION(datefmt_parse) convert_to_long(z_parse_pos); if (ZEND_LONG_INT_OVFL(Z_LVAL_P(z_parse_pos))) { intl_error_set_code(NULL, U_ILLEGAL_ARGUMENT_ERROR); - intl_error_set_custom_msg(NULL, "Input string is too long.", 0); + intl_error_set_custom_msg(NULL, "String index is out of valid range.", 0); RETURN_FALSE; } parse_pos = (int32_t)Z_LVAL_P(z_parse_pos); @@ -193,7 +193,7 @@ PHP_FUNCTION(datefmt_localtime) convert_to_long(z_parse_pos); if (ZEND_LONG_INT_OVFL(Z_LVAL_P(z_parse_pos))) { intl_error_set_code(NULL, U_ILLEGAL_ARGUMENT_ERROR); - intl_error_set_custom_msg(NULL, "Input string is too long.", 0); + intl_error_set_custom_msg(NULL, "String index is out of valid range.", 0); RETURN_FALSE; } parse_pos = (int32_t)Z_LVAL_P(z_parse_pos); |