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