1--TEST--
2Test easter_date() on 64bit systems
3--SKIPIF--
4<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
5--INI--
6date.timezone=UTC
7--ENV--
8TZ=UTC
9--EXTENSIONS--
10calendar
11--FILE--
12<?php
13putenv('TZ=UTC');
14echo date("Y-m-d", easter_date(2000))."\n";
15echo date("Y-m-d", easter_date(2001))."\n";
16echo date("Y-m-d", easter_date(2002))."\n";
17echo date("Y-m-d", easter_date(2045))."\n";
18echo date("Y-m-d", easter_date(2046))."\n";
19echo date("Y-m-d", easter_date(2047))."\n";
20try {
21    easter_date(1492);
22} catch (ValueError $ex) {
23    echo "{$ex->getMessage()}\n";
24}
25?>
26--EXPECT--
272000-04-23
282001-04-15
292002-03-31
302045-04-09
312046-03-25
322047-04-14
33easter_date(): Argument #1 ($year) must be a year after 1970 (inclusive)
34