projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
limit the workaround for #84 to libcurl 7.63-7.64
[m6w6/ext-http]
/
tests
/
cookie002.phpt
1
--TEST--
2
cookies expire as date
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--INI--
8
date.timezone=UTC
9
--FILE--
10
<?php
11
echo "Test\n";
12
13
$d = new DateTime;
14
$c = new http\Cookie(array("expires" => $d->format(DateTime::RFC1123)));
15
var_dump($d->format("U") == $c->getExpires());
16
17
?>
18
DONE
19
--EXPECT--
20
Test
21
bool(true)
22
DONE