--TEST-- Bug #80185 (jdtounix() fails after 2037) --SKIPIF-- --FILE-- getMessage(), PHP_EOL; } var_dump(jdtounix(PHP_INT_MAX / 86400 + 2440588)); try { var_dump(jdtounix(PHP_INT_MAX / 86400 + 2440589)); } catch (ValueError $ex) { echo $ex->getMessage(), PHP_EOL; } ?> --EXPECT-- jday must be between 2440588 and 2465443 int(2147472000) jday must be between 2440588 and 2465443