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==DONE== 25--EXPECT-- 26Europe/Amsterdam 27int(3600000) 28Europe/Amsterdam 29int(3600000) 30==DONE== 30