projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- separate http_methods.c into http_*_object.c files
[m6w6/ext-http]
/
tests
/
parse_headers_001.phpt
1
--TEST--
2
http_parse_headers()
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
?>
7
--FILE--
8
<?php
9
print_r(http_parse_headers(
10
"Host: localhost\r\n".
11
"Host: ambigious\r\n".
12
"Nospace:here\r\n".
13
"Muchspace: there \r\n".
14
"Empty:\r\n".
15
"Empty2: \r\n".
16
": invalid\r\n".
17
" : bogus\r\n".
18
"Folded: one\r\n".
19
"\ttwo\r\n".
20
" three\r\n".
21
"stop\r\n"
22
));
23
?>
24
--EXPECTF--
25
Content-type: text/html
26
X-Powered-By: PHP/%s
27
28
Array
29
(
30
[Host] => Array
31
(
32
[0] => localhost
33
[1] => ambigious
34
)
35
36
[Nospace] => here
37
[Muchspace] => there
38
[Empty] =>
39
[Empty2] =>
40
[Folded] => one
41
two
42
three
43
)