mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
26 lines
476 B
PHP
26 lines
476 B
PHP
--TEST--
|
|
IntlCalendar::setTime() basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
$time = strtotime('2012-02-29 00:00:00 +0000');
|
|
|
|
$intlcal = IntlCalendar::createInstance('UTC');
|
|
$intlcal->setTime($time * 1000);
|
|
|
|
var_dump(
|
|
(float)$time*1000,
|
|
$intlcal->getTime());
|
|
|
|
$intlcal = IntlCalendar::createInstance('UTC');
|
|
intlcal_set_time($intlcal,$time * 1000);
|
|
var_dump(intlcal_get_time($intlcal));
|
|
|
|
?>
|
|
--EXPECT--
|
|
float(1330473600000)
|
|
float(1330473600000)
|
|
float(1330473600000)
|