1--TEST--
2Test easter_date() on 32bit systems checks the upper year limit
3--SKIPIF--
4<?php if (PHP_INT_SIZE != 4) die("skip 32-bit only"); ?>
5--INI--
6date.timezone=UTC
7--ENV--
8TZ=UTC
9--EXTENSIONS--
10calendar
11--FILE--
12<?php
13putenv('TZ=UTC');
14try {
15    easter_date(2040);
16} catch (ValueError $ex) {
17    echo "{$ex->getMessage()}\n";
18}
19?>
20--EXPECT--
21easter_date(): Argument #1 ($year) must be between 1970 and 2037 (inclusive)
22