Minor fix to avoid future mysterious failed test headaches. I don't really
authorRasmus Lerdorf <rasmus@php.net>
Mon, 2 May 2005 21:49:08 +0000 (21:49 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 2 May 2005 21:49:08 +0000 (21:49 +0000)
understand the point of this test in the first place, but I figured I
should fix the obvious bug.

tests/date_002.phpt

index 3bcafac076c51e937eb084467918d8aed97851ea..3f00520b15c53e167ad4f91778348bf192687c69 100644 (file)
@@ -6,8 +6,9 @@ include 'skip.inc';
 ?>
 --FILE--
 <?php
-$d1 = http_date();
-$d2 = http_date();
+$t = time();
+$d1 = http_date($t);
+$d2 = http_date($t);
 var_dump($d1 === $d2);
 echo strtotime($d1), "\n$d1\n$d2\n";
 ?>