1--TEST--
2IntlCalendar::set() basic test
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "nl");
11
12$intlcal = IntlCalendar::createInstance();
13var_dump($intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 2));
14var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
15var_dump(intlcal_set($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 3));
16var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
17
18?>
19--EXPECTF--
20bool(true)
21int(2)
22
23Deprecated: Function intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or IntlCalendar::setDateTime() instead in %s on line %d
24bool(true)
25int(3)
26