xref: /PHP-7.3/ext/calendar/tests/bug80185.phpt (revision e857dfa7)
1--TEST--
2Bug #80185 (jdtounix() fails after 2037)
3--SKIPIF--
4<?php
5if (!extension_loaded('calendar')) die('skip ext/calendar required');
6if (PHP_INT_SIZE != 8) die("skip for 64bit platforms only");
7?>
8--FILE--
9<?php
10var_dump(jdtounix(2465712));
11var_dump(jdtounix(PHP_INT_MAX / 86400 + 2440588));
12var_dump(jdtounix(PHP_INT_MAX / 86400 + 2440589));
13?>
14--EXPECT--
15int(2170713600)
16int(9223372036854720000)
17bool(false)
18