1--TEST--
2IntlGregorianCalendar::__construct(): argument variants
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9date_default_timezone_set('Europe/Amsterdam');
10
11$intlcal = intlgregcal_create_instance(2012, 1, 29, 16, 0, 0);
12var_dump($intlcal->getTimeZone()->getId());
13var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:00:00') * 1000);
14
15$intlcal = new IntlGregorianCalendar(2012, 1, 29, 16, 7, 8);
16var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:07:08') * 1000);
17
18var_dump($intlcal->getType());
19?>
20--EXPECTF--
21Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
22string(16) "Europe/Amsterdam"
23float(1330527600000)
24float(1330527600000)
25
26Deprecated: Calling IntlGregorianCalendar::__construct() with more than 2 arguments is deprecated, use either IntlGregorianCalendar::createFromDate() or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
27float(1330528028000)
28float(1330528028000)
29string(9) "gregorian"
30