xref: /PHP-8.2/ext/calendar/tests/gh16231.phpt (revision f4d2dd03)
1--TEST--
2GH-16231 (jdtounix argument overflow)
3--EXTENSIONS--
4calendar
5--FILE--
6<?php
7try {
8	jdtounix(PHP_INT_MIN);
9} catch (\ValueError $e) {
10	echo $e->getMessage() . PHP_EOL;
11}
12
13try {
14	jdtounix(240587);
15} catch (\ValueError $e) {
16	echo $e->getMessage();
17}
18?>
19--EXPECTF--
20jday must be between 2440588 and %d
21jday must be between 2440588 and %d
22