diff options
author | foobar <sniper@php.net> | 2003-02-17 06:23:22 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-02-17 06:23:22 +0000 |
commit | d3e006eafd09dd3354528c2552e1d06b87f1bc33 (patch) | |
tree | 850b5a73d5f2b75d69a20abf3259083f2ef84ec8 /ext | |
parent | 6b7a822cec5d40b87ad4cfe4b3686f0683e86110 (diff) | |
download | php-git-d3e006eafd09dd3354528c2552e1d06b87f1bc33.tar.gz |
- These results were obviously got with TZ=GMT
# also prefixed the test results with the tested option
# so it's easier to see which one fails..
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/tests/time/idate.phpt | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/ext/standard/tests/time/idate.phpt b/ext/standard/tests/time/idate.phpt index 6f06f276d1..403ec6bdbb 100644 --- a/ext/standard/tests/time/idate.phpt +++ b/ext/standard/tests/time/idate.phpt @@ -1,30 +1,32 @@ --TEST-- idate() function --FILE-- -<? +<?php +putenv ("TZ=GMT"); + $tmp = "UYzymndjHGhgistwLBIW"; -for($a=0;$a<strlen($tmp);$a++){ - echo idate($tmp{$a},1043324459)."\n"; +for($a = 0;$a < strlen($tmp); $a++){ + echo $tmp{$a}, ': ', idate($tmp{$a}, 1043324459)."\n"; } ?> --EXPECT-- -1043324459 -2003 -22 -3 -1 -1 -23 -23 -12 -12 -12 -12 -20 -59 -31 -4 -0 -556 -0 -4 +U: 1043324459 +Y: 2003 +z: 22 +y: 3 +m: 1 +n: 1 +d: 23 +j: 23 +H: 12 +G: 12 +h: 12 +g: 12 +i: 20 +s: 59 +t: 31 +w: 4 +L: 0 +B: 556 +I: 0 +W: 4 |