projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix overload guards leaks
[m6w6/ext-http]
/
tests
/
parse_headers_001.phpt
diff --git
a/tests/parse_headers_001.phpt
b/tests/parse_headers_001.phpt
index 61ee93e2ebe1426e928b776654f183172497eb21..9da8c815277a80999c62e79f9b8620e5e1c5460e 100644
(file)
--- a/
tests/parse_headers_001.phpt
+++ b/
tests/parse_headers_001.phpt
@@
-1,32
+1,35
@@
--TEST--
http_parse_headers()
--SKIPIF--
--TEST--
http_parse_headers()
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
?>
--FILE--
<?php
include 'skip.inc';
?>
--FILE--
<?php
+echo "-TEST\n";
print_r(http_parse_headers(
"Host: localhost\r\n".
print_r(http_parse_headers(
"Host: localhost\r\n".
+"Host: ambigious\r\n".
"Nospace:here\r\n".
"Muchspace: there \r\n".
"Empty:\r\n".
"Empty2: \r\n".
"Nospace:here\r\n".
"Muchspace: there \r\n".
"Empty:\r\n".
"Empty2: \r\n".
-": invalid\r\n".
-" : bogus\r\n".
"Folded: one\r\n".
"\ttwo\r\n".
"Folded: one\r\n".
"\ttwo\r\n".
-" three\r\n".
+" three\r\n
\r\n
".
"stop\r\n"
));
?>
--EXPECTF--
"stop\r\n"
));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
Array
(
Array
(
- [Host] => localhost
+ [Host] => Array
+ (
+ [0] => localhost
+ [1] => ambigious
+ )
+
[Nospace] => here
[Muchspace] => there
[Empty] =>
[Nospace] => here
[Muchspace] => there
[Empty] =>
@@
-34,4
+37,5
@@
Array
[Folded] => one
two
three
[Folded] => one
two
three
-)
\ No newline at end of file
+)
+