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
/
cookie001.phpt
1
--TEST--
2
cookies empty state
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--FILE--
8
<?php
9
echo "Test\n";
10
11
$c = new http\Cookie;
12
$o = clone $c;
13
$a = array(
14
"cookies" => array(),
15
"extras" => array(),
16
"flags" => 0,
17
"expires" => -1,
18
"path" => "",
19
"domain" => "",
20
"max-age" => -1,
21
);
22
var_dump($a == $c->toArray());
23
var_dump($a == $o->toArray());
24
25
?>
26
DONE
27
--EXPECT--
28
Test
29
bool(true)
30
bool(true)
31
DONE