--TEST-- IntlGregorianCalendar::__construct(): basic --EXTENSIONS-- intl --FILE-- getTimeZone()->getId()); var_dump($intlcal->getLocale(1)); $intlcal = new IntlGregorianCalendar('Europe/Lisbon', NULL); var_dump($intlcal->getTimeZone()->getId()); var_dump($intlcal->getLocale(1)); $intlcal = new IntlGregorianCalendar(NULL, 'pt_PT'); var_dump($intlcal->getTimeZone()->getId()); var_dump($intlcal->getLocale(1)); $intlcal = new IntlGregorianCalendar('Europe/Lisbon', 'pt_PT'); var_dump($intlcal->getTimeZone()->getId()); var_dump($intlcal->getLocale(1)); $intlcal = new IntlGregorianCalendar('Europe/Paris', 'fr_CA', NULL, NULL, NULL, NULL); var_dump($intlcal->getTimeZone()->getId()); var_dump($intlcal->getLocale(1)); var_dump($intlcal->getType()); ?> --EXPECTF-- Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d string(16) "Europe/Amsterdam" string(5) "nl_NL" string(13) "Europe/Lisbon" string(5) "nl_NL" string(16) "Europe/Amsterdam" string(5) "pt_PT" string(13) "Europe/Lisbon" string(5) "pt_PT" Deprecated: Calling IntlGregorianCalendar::__construct() with more than 2 arguments is deprecated, use either IntlGregorianCalendar::createFromDate() or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d string(12) "Europe/Paris" string(5) "fr_CA" string(9) "gregorian"