projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
98ab785b0b7148b0d53ffcea2bcbd2c7875604cd
[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
echo "-TEST\n";
10
$t = time();
11
$d1 = http_date($t);
12
$d2 = http_date($t);
13
var_dump($d1 === $d2);
14
echo strtotime($d1), "\n$d1\n$d2\n";
15
?>
16
--EXPECTF--
17
%sTEST
18
bool(true)
19
%d
20
%s, %d %s %d %d:%d:%d GMT
21
%s, %d %s %d %d:%d:%d GMT
22