xref: /PHP-7.1/ext/calendar/tests/bug52744.phpt (revision 97f6da74)
1--TEST--
2Bug #52744 (cal_days_in_month incorrect for December 1 BCE)
3--SKIPIF--
4<?php include 'skipif.inc'; ?>
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