Skip to content

Commit ed2c6ba

Browse files
committed
ext/intl: fix build due to 2d78489 merge.
close phpGH-22076
1 parent 6e2e6e2 commit ed2c6ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/intl/dateformat/dateformat_create.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static zend_result datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
9999
return FAILURE;
100100
}
101101
if (date_type == UDAT_PATTERN && time_type != UDAT_PATTERN) {
102-
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "datefmt_create: time format must be IntlDateFormatter::PATTERN if date format is IntlDateFormatter::PATTERN", 0);
102+
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, "datefmt_create: time format must be IntlDateFormatter::PATTERN if date format is IntlDateFormatter::PATTERN");
103103
return FAILURE;
104104
}
105105

ext/intl/tests/gh12243.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ try {
2121

2222
?>
2323
--EXPECT--
24-
IntlDateFormatter::__construct(): time format must be IntlDateFormatter::PATTERN if date format is IntlDateFormatter::PATTERN: U_ILLEGAL_ARGUMENT_ERROR
24+
IntlDateFormatter::__construct(): datefmt_create: time format must be IntlDateFormatter::PATTERN if date format is IntlDateFormatter::PATTERN

0 commit comments

Comments
 (0)