projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- This must not be changed here
[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
%sArray
26
(
27
[Host] => Array
28
(
29
[0] => localhost
30
[1] => ambigious
31
)
32
33
[Nospace] => here
34
[Muchspace] => there
35
[Empty] =>
36
[Empty2] =>
37
[Folded] => one
38
two
39
three
40
)