summaryrefslogtreecommitdiff
path: root/ext/calendar/tests/bug52744.phpt
blob: 99fd65f61bbace47d3f08e3dd2c35bbce292b68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #52744 (cal_days_in_month incorrect for December 1 BCE)
--EXTENSIONS--
calendar
--FILE--
<?php
var_dump(cal_days_in_month(CAL_GREGORIAN, 12, -1));
var_dump(cal_days_in_month(CAL_JULIAN, 12, -1));
?>
--EXPECT--
int(31)
int(31)