File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4032,7 +4032,7 @@ PHP_FUNCTION(timezone_transitions_get)
4032
4032
add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].abbr_idx]); \
4033
4033
add_next_index_zval(return_value, &element);
4034
4034
4035
- #define add_last () add(tzobj->tzi.tz->bit32 .timecnt - 1, timestamp_begin)
4035
+ #define add_last () add(tzobj->tzi.tz->bit64 .timecnt - 1, timestamp_begin)
4036
4036
4037
4037
array_init (return_value );
4038
4038
@@ -4043,7 +4043,7 @@ PHP_FUNCTION(timezone_transitions_get)
4043
4043
} else {
4044
4044
begin = 0 ;
4045
4045
found = 0 ;
4046
- if (tzobj -> tzi .tz -> bit32 .timecnt > 0 ) {
4046
+ if (tzobj -> tzi .tz -> bit64 .timecnt > 0 ) {
4047
4047
do {
4048
4048
if (tzobj -> tzi .tz -> trans [begin ] > timestamp_begin ) {
4049
4049
if (begin > 0 ) {
@@ -4055,19 +4055,19 @@ PHP_FUNCTION(timezone_transitions_get)
4055
4055
break ;
4056
4056
}
4057
4057
begin ++ ;
4058
- } while (begin < tzobj -> tzi .tz -> bit32 .timecnt );
4058
+ } while (begin < tzobj -> tzi .tz -> bit64 .timecnt );
4059
4059
}
4060
4060
}
4061
4061
4062
4062
if (!found ) {
4063
- if (tzobj -> tzi .tz -> bit32 .timecnt > 0 ) {
4063
+ if (tzobj -> tzi .tz -> bit64 .timecnt > 0 ) {
4064
4064
add_last ();
4065
4065
} else {
4066
4066
add_nominal ();
4067
4067
}
4068
4068
} else {
4069
4069
unsigned int i ;
4070
- for (i = begin ; i < tzobj -> tzi .tz -> bit32 .timecnt ; ++ i ) {
4070
+ for (i = begin ; i < tzobj -> tzi .tz -> bit64 .timecnt ; ++ i ) {
4071
4071
if (tzobj -> tzi .tz -> trans [i ] < timestamp_end ) {
4072
4072
add (i , tzobj -> tzi .tz -> trans [i ]);
4073
4073
}
You can’t perform that action at this time.
0 commit comments