projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- get rid of 1001 strict-aliasing warnings
[m6w6/ext-http]
/
tests
/
parse_cookie_001.phpt
diff --git
a/tests/parse_cookie_001.phpt
b/tests/parse_cookie_001.phpt
index 3e42f6b0a1896d0a925f8d7950049ac6b1c04c07..d17c78d43dad2c116836be3ac181cb68b710950a 100644
(file)
--- a/
tests/parse_cookie_001.phpt
+++ b/
tests/parse_cookie_001.phpt
@@
-8,20
+8,34
@@
include 'skip.inc';
<?php
echo "-TEST\n";
<?php
echo "-TEST\n";
-var_dump(http_parse_cookie('name="value"; foo="bar\"baz"; hey=got
\"it'
));
+var_dump(http_parse_cookie('name="value"; foo="bar\"baz"; hey=got
"it ; path=/ ; comment=; expires='.http_date(1).' secure ; httpOnly', 0, array("comment")
));
echo "Done\n";
?>
--EXPECTF--
%sTEST
echo "Done\n";
?>
--EXPECTF--
%sTEST
-object(stdClass)#1 (4) {
- ["name"]=>
- string(4) "name"
- ["value"]=>
- string(5) "value"
- ["foo"]=>
- string(7) "bar"baz"
- ["hey"]=>
- string(7) "got\"it"
+object(stdClass)#%d (%d) {
+ ["cookies"]=>
+ array(3) {
+ ["name"]=>
+ string(5) "value"
+ ["foo"]=>
+ string(7) "bar"baz"
+ ["hey"]=>
+ string(6) "got"it"
+ }
+ ["extras"]=>
+ array(1) {
+ ["comment"]=>
+ string(0) ""
+ }
+ ["flags"]=>
+ int(32)
+ ["expires"]=>
+ int(1)
+ ["path"]=>
+ string(1) "/"
+ ["domain"]=>
+ string(0) ""
}
Done
}
Done