mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
d32ac3efc8
Added date.timezone=Atlantic/Azores to all tests that were failing because of ext/date warning about a timezone not having been set.
33 lines
777 B
PHP
33 lines
777 B
PHP
--TEST--
|
|
IntlCalendar::clear() 1 arg variation
|
|
--INI--
|
|
date.timezone=Atlantic/Azores
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "nl");
|
|
|
|
$intlcal = IntlCalendar::createInstance('UTC');
|
|
$intlcal->setTime(strtotime('2012-02-29 05:06:07 +0000') * 1000);
|
|
//print_R($intlcal);
|
|
var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
|
|
var_dump($intlcal->clear(IntlCalendar::FIELD_MONTH));
|
|
var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
|
|
//print_R($intlcal);
|
|
var_dump(
|
|
$intlcal->getTime(),
|
|
strtotime('2012-01-29 05:06:07 +0000') * 1000.
|
|
);
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|
|
float(1327813567000)
|
|
float(1327813567000)
|
|
==DONE==
|