Skip to content

Commit ce9b6e5

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
2 parents 7d6d8a3 + 6a5798d commit ce9b6e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/date/php_date.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,7 +3926,7 @@ PHP_FUNCTION(timezone_transitions_get)
39263926
add_assoc_string(element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].abbr_idx], 1); \
39273927
add_next_index_zval(return_value, element);
39283928

3929-
#define add_last() add(tzobj->tzi.tz->timecnt - 1, timestamp_begin)
3929+
#define add_last() add(tzobj->tzi.tz->bit32.timecnt - 1, timestamp_begin)
39303930

39313931
array_init(return_value);
39323932

@@ -3937,7 +3937,7 @@ PHP_FUNCTION(timezone_transitions_get)
39373937
} else {
39383938
begin = 0;
39393939
found = 0;
3940-
if (tzobj->tzi.tz->timecnt > 0) {
3940+
if (tzobj->tzi.tz->bit32.timecnt > 0) {
39413941
do {
39423942
if (tzobj->tzi.tz->trans[begin] > timestamp_begin) {
39433943
if (begin > 0) {
@@ -3949,18 +3949,18 @@ PHP_FUNCTION(timezone_transitions_get)
39493949
break;
39503950
}
39513951
begin++;
3952-
} while (begin < tzobj->tzi.tz->timecnt);
3952+
} while (begin < tzobj->tzi.tz->bit32.timecnt);
39533953
}
39543954
}
39553955

39563956
if (!found) {
3957-
if (tzobj->tzi.tz->timecnt > 0) {
3957+
if (tzobj->tzi.tz->bit32.timecnt > 0) {
39583958
add_last();
39593959
} else {
39603960
add_nominal();
39613961
}
39623962
} else {
3963-
for (i = begin; i < tzobj->tzi.tz->timecnt; ++i) {
3963+
for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) {
39643964
if (tzobj->tzi.tz->trans[i] < timestamp_end) {
39653965
add(i, tzobj->tzi.tz->trans[i]);
39663966
}

0 commit comments

Comments
 (0)