projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create tag 'RELEASE_0_23_0'.
[m6w6/ext-http]
/
tests
/
parse_cookie_001.phpt
1
--TEST--
2
parse cookie
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
?>
7
--FILE--
8
<?php
9
echo "-TEST\n";
10
11
var_dump(http_parse_cookie('name="value"; foo="bar\"baz"; hey=got"it ; path=/ ; comment=; expires='.http_date(1).' secure ; httpOnly', 0, array("comment")));
12
13
echo "Done\n";
14
?>
15
--EXPECTF--
16
%sTEST
17
object(stdClass)#%d (%d) {
18
["cookies"]=>
19
array(3) {
20
["name"]=>
21
string(5) "value"
22
["foo"]=>
23
string(7) "bar"baz"
24
["hey"]=>
25
string(6) "got"it"
26
}
27
["extras"]=>
28
array(1) {
29
["comment"]=>
30
string(0) ""
31
}
32
["flags"]=>
33
int(32)
34
["expires"]=>
35
int(1)
36
["path"]=>
37
string(1) "/"
38
["domain"]=>
39
string(0) ""
40
}
41
Done