1--TEST--
2Bug #52744 (cal_days_in_month incorrect for December 1 BCE)
3--EXTENSIONS--
4calendar
5--FILE--
6<?php
7var_dump(cal_days_in_month(CAL_GREGORIAN, 12, -1));
8var_dump(cal_days_in_month(CAL_JULIAN, 12, -1));
9?>
10--EXPECT--
11int(31)
12int(31)
13