File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
date /
tests /
bug35425.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:53 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Bug #35425 (idate() function ignores timezone settings)
--INI--
date.timezone=America/Montreal
--FILE--
<?php
$time = mktime(1,1,1,1,1,2005);
foreach (array('B','d','h','H','i','I','L','m','s','t','U','w','W','y','Y','z','Z') as $v) {
var_dump(idate($v, $time));
}
?>
--EXPECT--
int(292)
int(1)
int(1)
int(1)
int(1)
int(0)
int(0)
int(1)
int(1)
int(31)
int(1104559261)
int(6)
int(53)
int(5)
int(2005)
int(0)
int(-18000)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>