1--TEST-- 2IntlCalendar::getMaximum(), ::getActualMaximum(), ::getLeastMaximum() basic test 3--INI-- 4date.timezone=Atlantic/Azores 5--SKIPIF-- 6<?php 7if (!extension_loaded('intl')) 8 die('skip intl extension not enabled'); 9--FILE-- 10<?php 11ini_set("intl.error_level", E_WARNING); 12ini_set("intl.default_locale", "nl"); 13 14$intlcal = IntlCalendar::createInstance('UTC'); 15$intlcal->setTime(strtotime('2012-02-29 05:06:07 +0000') * 1000); 16var_dump( 17 $intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 18 intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 19 $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 20 intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), 21 $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), 22 intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH) 23); 24 25?> 26==DONE== 27--EXPECT-- 28int(28) 29int(28) 30int(29) 31int(29) 32int(31) 33int(31) 34==DONE== 34