projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- add more sophisticated cookie parser
[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'));
12
13
echo "Done\n";
14
?>
15
--EXPECTF--
16
%sTEST
17
object(stdClass)#1 (4) {
18
["name"]=>
19
string(4) "name"
20
["value"]=>
21
string(5) "value"
22
["foo"]=>
23
string(7) "bar"baz"
24
["hey"]=>
25
string(7) "got\"it"
26
}
27
Done