Minor fix to avoid future mysterious failed test headaches. I don't really
[m6w6/ext-http] / tests / date_002.phpt
1 --TEST--
2 http_date() without timestamp
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 $t = time();
10 $d1 = http_date($t);
11 $d2 = http_date($t);
12 var_dump($d1 === $d2);
13 echo strtotime($d1), "\n$d1\n$d2\n";
14 ?>
15 --EXPECTF--
16 Content-type: text/html
17 X-Powered-By: PHP/%s
18
19 bool(true)
20 %d
21 %s, %d %s %d %d:%d:%d GMT
22 %s, %d %s %d %d:%d:%d GMT