[php-src] PHP-8.5: ext/intl: Fix IntlCalendar::setTime() build on PHP 8.5 and later
| From: | Weilin Du | Date: | Mon, 23 Nov 2026 16:58:26 +0000 |
| Subject: | [php-src] PHP-8.5: ext/intl: Fix IntlCalendar::setTime() build on PHP 8.5 and later | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-144073@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Date: 2026-11-24T00:56:35+08:00
Commit: https://github.com/php/php-src/commit/0206272ec24785ce3e4c7561da5902121a2ee2e9
Raw diff: https://github.com/php/php-src/commit/0206272ec24785ce3e4c7561da5902121a2ee2e9.diff
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.
Changed paths:
M ext/intl/calendar/calendar_methods.cpp
Diff:
diff --git a/ext/intl/calendar/calendar_methods.cpp b/ext/intl/calendar/calendar_methods.cpp
index 630563cbfcf8..709f86d51c08 100644
--- a/ext/intl/calendar/calendar_methods.cpp
+++ b/ext/intl/calendar/calendar_methods.cpp
@@ -270,7 +270,7 @@ U_CFUNC PHP_FUNCTION(intlcal_set_time)
if (UNEXPECTED(!zend_finite(time_arg))) {
intl_errors_set(CALENDAR_ERROR_P(co), U_ILLEGAL_ARGUMENT_ERROR,
- "Timestamp must be finite", 0);
+ "Timestamp must be finite");
RETURN_FALSE;
}