projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
hack PHP_5_4 compatibility into v1
[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
echo "-TEST\n";
10
print_r(http_parse_headers(
11
"Host: localhost\r\n".
12
"Host: ambigious\r\n".
13
"Nospace:here\r\n".
14
"Muchspace: there \r\n".
15
"Empty:\r\n".
16
"Empty2: \r\n".
17
"Folded: one\r\n".
18
"\ttwo\r\n".
19
" three\r\n\r\n".
20
"stop\r\n"
21
));
22
?>
23
--EXPECTF--
24
%aTEST
25
Array
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
)
41