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 != 4) die("skip for 32bit 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--
15bool(false)
16int(2147472000)
17bool(false)
18