xref: /PHP-8.2/ext/calendar/tests/gh16834.phpt (revision 80894d87)
1--TEST--
2GH-16834 (cal_from_jd from julian_day argument)
3--EXTENSIONS--
4calendar
5--SKIPIF--
6<?php if (PHP_INT_SIZE != 8) die("skip for 64bit platforms only"); ?>
7--FILE--
8<?php
9var_dump(cal_from_jd(076545676543223, CAL_GREGORIAN));
10?>
11--EXPECTF--
12array(9) {
13  ["date"]=>
14  string(5) "0/0/0"
15  ["month"]=>
16  int(0)
17  ["day"]=>
18  int(0)
19  ["year"]=>
20  int(0)
21  ["dow"]=>
22  int(%d)
23  ["abbrevdayname"]=>
24  string(3) "%s"
25  ["dayname"]=>
26  string(9) "%s"
27  ["abbrevmonth"]=>
28  string(0) ""
29  ["monthname"]=>
30  string(0) ""
31}
32