Skip to content

Commit 0206272

Browse files
committed
ext/intl: Fix IntlCalendar::setTime() build on PHP 8.5 and later
Drop the obsolete fourth argument to intl_errors_set() when reporting a non-finite timestamp. The argument was removed in PHP 8.5. Follow-up to #25668.
1 parent 3502e6f commit 0206272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ext/intl/calendar/calendar_methods.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ U_CFUNC PHP_FUNCTION(intlcal_set_time)
270270

271271
if (UNEXPECTED(!zend_finite(time_arg))) {
272272
intl_errors_set(CALENDAR_ERROR_P(co), U_ILLEGAL_ARGUMENT_ERROR,
273-
"Timestamp must be finite", 0);
273+
"Timestamp must be finite");
274274
RETURN_FALSE;
275275
}
276276

0 commit comments

Comments
 (0)