Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ PHP NEWS
. Fixed GMP integer string parsing to reject strings containing NUL bytes
instead of silently truncating them. (Weilin Du)

- Intl:
. Fixed grammatical issues in Normalizer invalid form and IntlCalendar time
zone offset error messages. (Weilin Du)

- ODBC:
. Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the
driver-reported display size). (iliaal)
Expand Down
2 changes: 1 addition & 1 deletion ext/intl/common/common_date.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ U_CFUNC TimeZone *timezone_convert_datetimezone(

if (UNEXPECTED(offset_mins <= -24 * 60 || offset_mins >= 24 * 60)) {
intl_errors_set(outside_error, U_ILLEGAL_ARGUMENT_ERROR,
"object has an time zone offset that's too large");
"object has a time zone offset that is too large");
return NULL;
}

Expand Down
4 changes: 2 additions & 2 deletions ext/intl/normalizer/normalizer_normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ U_CFUNC PHP_FUNCTION( normalizer_normalize )
case NORMALIZER_FORM_KC_CF:
break;
default:
zend_argument_value_error(2, "must be a a valid normalization form");
zend_argument_value_error(2, "must be a valid normalization form");
RETURN_THROWS();
}

Expand Down Expand Up @@ -232,7 +232,7 @@ U_CFUNC PHP_FUNCTION( normalizer_is_normalized )
case NORMALIZER_FORM_KC_CF:
break;
default:
zend_argument_value_error(2, "must be a a valid normalization form");
zend_argument_value_error(2, "must be a valid normalization form");
RETURN_THROWS();
}

Expand Down
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_fromDateTime_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ DateMalformedStringException: Failed to parse time string (foobar) at position 0
NULL
string(88) "IntlCalendar::fromDateTime(): DateTime object is unconstructed: U_ILLEGAL_ARGUMENT_ERROR"
NULL
string(103) "IntlCalendar::fromDateTime(): object has an time zone offset that's too large: U_ILLEGAL_ARGUMENT_ERROR"
string(103) "IntlCalendar::fromDateTime(): object has a time zone offset that is too large: U_ILLEGAL_ARGUMENT_ERROR"
NULL
string(127) "IntlCalendar::fromDateTime(): time zone id 'WEST' extracted from ext/date DateTimeZone not recognized: U_ILLEGAL_ARGUMENT_ERROR"
2 changes: 1 addition & 1 deletion ext/intl/tests/calendar_setTimeZone_error2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ bool(false)
string(126) "IntlCalendar::setTimeZone(): time zone id 'WEST' extracted from ext/date DateTimeZone not recognized: U_ILLEGAL_ARGUMENT_ERROR"
string(16) "Europe/Amsterdam"
bool(false)
string(102) "IntlCalendar::setTimeZone(): object has an time zone offset that's too large: U_ILLEGAL_ARGUMENT_ERROR"
string(102) "IntlCalendar::setTimeZone(): object has a time zone offset that is too large: U_ILLEGAL_ARGUMENT_ERROR"
string(16) "Europe/Amsterdam"
Loading