--TEST--
http_parse_headers()
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
?>
--FILE--
<?php
+echo "-TEST\n";
print_r(http_parse_headers(
"Host: localhost\r\n".
"Host: ambigious\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".
-" three\r\n".
+" three\r\n\r\n".
"stop\r\n"
));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
Array
(
[Host] => Array
[Folded] => one
two
three
-)
\ No newline at end of file
+)
+