From: Anatol Belski Date: Tue, 5 Jul 2016 13:58:55 +0000 (+0200) Subject: fix error text X-Git-Tag: php-7.1.0alpha3~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a522e3b17959792a0cb1abd155bbcfc97d5f0d5;p=php fix error text --- 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);