1--TEST-- 2Test easter_date() on 32bit systems 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'); 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"; 17try { 18 easter_date(1492); 19} catch (ValueError $ex) { 20 echo "{$ex->getMessage()}\n"; 21} 22?> 23--EXPECT-- 242000-04-23 252001-04-15 262002-03-31 27easter_date(): Argument #1 ($year) must be between 1970 and 2037 (inclusive) 28