projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add missing support for raw post data (HttpRequest)
[m6w6/ext-http]
/
tests
/
date_002.phpt
diff --git
a/tests/date_002.phpt
b/tests/date_002.phpt
index 3f00520b15c53e167ad4f91778348bf192687c69..522d0e2beff0c0e3334185b574cb932276ba6b65 100644
(file)
--- a/
tests/date_002.phpt
+++ b/
tests/date_002.phpt
@@
-1,22
+1,22
@@
--TEST--
http_date() without timestamp
--SKIPIF--
--TEST--
http_date() without timestamp
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
?>
include 'skip.inc';
?>
+--INI--
+date.timezone=GMT
--FILE--
<?php
--FILE--
<?php
-
$t = time()
;
-$d
1 = http_date($t
);
-$
d2 = http_date($t
);
-var_dump($
d1 === $d2
);
-echo
strtotime($d1), "\n$d1\n$d2
\n";
+
echo "-TEST\n"
;
+$d
= http_date(
);
+$
t = strtotime($d
);
+var_dump($
t > 1
);
+echo
"$t\n$d\nDone
\n";
?>
--EXPECTF--
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
bool(true)
%d
%s, %d %s %d %d:%d:%d GMT
bool(true)
%d
%s, %d %s %d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
+Done