1--TEST-- 2IntlTimeZone::useDaylightTime: basic test 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); 10$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon'); 11$gmt = IntlTimeZone::getGMT(); 12 13var_dump($lsb->useDaylightTime()); 14var_dump($gmt->useDaylightTime()); 15 16var_dump(intltz_use_daylight_time($lsb)); 17var_dump(intltz_use_daylight_time($gmt)); 18?> 19--EXPECT-- 20bool(true) 21bool(false) 22bool(true) 23bool(false) 23