- update
[m6w6/ext-http] / tests / date_002.phpt
index 98ab785b0b7148b0d53ffcea2bcbd2c7875604cd..522d0e2beff0c0e3334185b574cb932276ba6b65 100644 (file)
@@ -4,19 +4,19 @@ http_date() without timestamp
 <?php
 include 'skip.inc';
 ?>
+--INI--
+date.timezone=GMT
 --FILE--
 <?php
 echo "-TEST\n";
-$t = time();
-$d1 = http_date($t);
-$d2 = http_date($t);
-var_dump($d1 === $d2);
-echo strtotime($d1), "\n$d1\n$d2\n";
+$d = http_date();
+$t = strtotime($d);
+var_dump($t > 1);
+echo "$t\n$d\nDone\n";
 ?>
 --EXPECTF--
 %sTEST
 bool(true)
 %d
 %s, %d %s %d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
-
+Done