com php-src: fix error text: ext/intl/dateformat/dateformat_p arse.c

From: Date: Tue, 05 Jul 2016 13:58:55 +0000
Subject: com php-src: fix error text: ext/intl/dateformat/dateformat_p arse.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92806@lists.php.net to get a copy of this message
Commit: 4a522e3b17959792a0cb1abd155bbcfc97d5f0d5 Author: Anatol Belski <ab@php.net> Tue, 5 Jul 2016 15:58:55 +0200 Parents: 28ed30df53ad694530961b4fc817900190bbbb86 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a522e3b17959792a0cb1abd155bbcfc97d5f0d5 Log: fix error text Changed paths: M ext/intl/dateformat/dateformat_parse.c Diff: diff --git a/ext/intl/dateformat/dateformat_parse.c b/ext/intl/dateformat/dateformat_parse.c index 81a432e..a833177 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);

« previous php.cvs (#92806) next »