cvs: php4 /ext/standard/tests/time idate.phpt
| From: | Jani Taskinen | Date: | Mon, 17 Feb 2003 06:23:22 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/time idate.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18904@lists.php.net to get a copy of this message | ||
sniper Mon Feb 17 01:23:22 2003 EDT
Modified files:
/php4/ext/standard/tests/time idate.phpt
Log:
- 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..
Index: php4/ext/standard/tests/time/idate.phpt
diff -u php4/ext/standard/tests/time/idate.phpt:1.1 php4/ext/standard/tests/time/idate.phpt:1.2
--- php4/ext/standard/tests/time/idate.phpt:1.1 Sun Feb 16 17:28:01 2003
+++ php4/ext/standard/tests/time/idate.phpt Mon Feb 17 01:23:22 2003
@@ -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