ext/intl: Refactor timezone parameter passing (#19409)

This commit is contained in:
Gina Peter Banyard 2025-08-08 21:12:43 +01:00 committed by GitHub
parent be2889411a
commit 43a91089ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 207 additions and 145 deletions

View file

@ -341,9 +341,7 @@ static void umsg_set_timezone(MessageFormatter_object *mfo,
}
if (used_tz == NULL) {
zval nullzv;
ZVAL_NULL(&nullzv);
used_tz = timezone_process_timezone_argument(&nullzv, &err);
used_tz = timezone_process_timezone_argument(nullptr, nullptr, &err);
if (used_tz == NULL) {
continue;
}