mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/intl: Refactor timezone parameter passing (#19409)
This commit is contained in:
parent
be2889411a
commit
43a91089ca
14 changed files with 207 additions and 145 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue