From 4a522e3b17959792a0cb1abd155bbcfc97d5f0d5 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 5 Jul 2016 15:58:55 +0200 Subject: [PATCH] fix error text --- ext/intl/dateformat/dateformat_parse.c | 4 ++-- 1 file 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); -- 2.50.1