1--TEST--
2IntlCalendar::setTimeZone() variation with NULL arg
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "nl");
9
10$intlcal = IntlCalendar::createInstance('Europe/Amsterdam');
11print_r($intlcal->getTimeZone()->getID());
12echo "\n";
13var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
14
15/* passing NULL has no effect */
16$intlcal->setTimeZone(null);
17print_r($intlcal->getTimeZone()->getID());
18echo "\n";
19var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
20
21?>
22--EXPECT--
23Europe/Amsterdam
24int(3600000)
25Europe/Amsterdam
26int(3600000)
26