xref: /PHP-8.3/ext/calendar/tests/bug54254.phpt (revision 56f90492)
1--TEST--
2Bug #54254 (cal_days_in_month incompatible with jdtojewish in non-leap-years)
3--EXTENSIONS--
4calendar
5--FILE--
6<?php
7var_dump(cal_days_in_month(CAL_JEWISH, 1, 5771));
8var_dump(cal_days_in_month(CAL_JEWISH, 2, 5771));
9var_dump(cal_days_in_month(CAL_JEWISH, 3, 5771));
10var_dump(cal_days_in_month(CAL_JEWISH, 4, 5771));
11var_dump(cal_days_in_month(CAL_JEWISH, 5, 5771));
12var_dump(cal_days_in_month(CAL_JEWISH, 6, 5771));
13var_dump(cal_days_in_month(CAL_JEWISH, 7, 5771));
14var_dump(cal_days_in_month(CAL_JEWISH, 8, 5771));
15var_dump(cal_days_in_month(CAL_JEWISH, 9, 5771));
16var_dump(cal_days_in_month(CAL_JEWISH, 10, 5771));
17var_dump(cal_days_in_month(CAL_JEWISH, 11, 5771));
18var_dump(cal_days_in_month(CAL_JEWISH, 12, 5771));
19var_dump(cal_days_in_month(CAL_JEWISH, 13, 5771));
20var_dump(cal_days_in_month(CAL_JEWISH, 1, 5772));
21var_dump(cal_days_in_month(CAL_JEWISH, 2, 5772));
22var_dump(cal_days_in_month(CAL_JEWISH, 3, 5772));
23var_dump(cal_days_in_month(CAL_JEWISH, 4, 5772));
24var_dump(cal_days_in_month(CAL_JEWISH, 5, 5772));
25var_dump(cal_days_in_month(CAL_JEWISH, 6, 5772));
26var_dump(cal_days_in_month(CAL_JEWISH, 7, 5772));
27var_dump(cal_days_in_month(CAL_JEWISH, 8, 5772));
28var_dump(cal_days_in_month(CAL_JEWISH, 9, 5772));
29var_dump(cal_days_in_month(CAL_JEWISH, 10, 5772));
30var_dump(cal_days_in_month(CAL_JEWISH, 11, 5772));
31var_dump(cal_days_in_month(CAL_JEWISH, 12, 5772));
32var_dump(cal_days_in_month(CAL_JEWISH, 13, 5772));
33?>
34--EXPECT--
35int(30)
36int(30)
37int(30)
38int(29)
39int(30)
40int(30)
41int(29)
42int(30)
43int(29)
44int(30)
45int(29)
46int(30)
47int(29)
48int(30)
49int(29)
50int(30)
51int(29)
52int(30)
53int(0)
54int(29)
55int(30)
56int(29)
57int(30)
58int(29)
59int(30)
60int(29)
61