1--TEST--
2IntlGregorianCalendar::setDate(): error cases
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
7--FILE--
8<?php
9try {
10    var_dump(IntlGregorianCalendar::createFromDate(99999999999, 1, 1));
11} catch (ValueError $e) {
12    echo $e->getMessage(), "\n";
13}
14
15try {
16    var_dump(IntlGregorianCalendar::createFromDate(1, 99999999999, 1));
17} catch (ValueError $e) {
18    echo $e->getMessage(), "\n";
19}
20
21try {
22    var_dump(IntlGregorianCalendar::createFromDate(1, 1, 99999999999));
23} catch (ValueError $e) {
24    echo $e->getMessage(), "\n";
25}
26
27?>
28--EXPECT--
29IntlGregorianCalendar::createFromDate(): Argument #1 ($year) must be between -2147483648 and 2147483647
30IntlGregorianCalendar::createFromDate(): Argument #2 ($month) must be between -2147483648 and 2147483647
31IntlGregorianCalendar::createFromDate(): Argument #3 ($dayOfMonth) must be between -2147483648 and 2147483647
32