projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- remove example scripts, as those can be extracted from tutorial.txt with extract.php
[m6w6/ext-http]
/
tests
/
date_002.phpt
diff --git
a/tests/date_002.phpt
b/tests/date_002.phpt
index f7f8a3b465e4a15e013a0bcb902c7c233314d9b9..1623595f87d69c0cd42128ae0697840e7447d8fd 100644
(file)
--- a/
tests/date_002.phpt
+++ b/
tests/date_002.phpt
@@
-4,21
+4,18
@@
http_date() without timestamp
<?php
include 'skip.inc';
?>
<?php
include 'skip.inc';
?>
---INI--
-date.timezone=GMT
--FILE--
<?php
echo "-TEST\n";
--FILE--
<?php
echo "-TEST\n";
-
$t = time(
);
-$d
1 = http_date($t
);
-$
d2 = http_date($t
);
-var_dump($
d1 === $d2
);
-echo
strtotime($d1), "\n$d1\n$d2
\n";
+
ini_set('date.timezone', 'GMT'
);
+$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
?>
--EXPECTF--
%sTEST
bool(true)
%d
%s, %d %s %d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
-
+Done