<commit_before>--TEST--
http_parse_headers()
--SKIPIF--
<?php 
include 'skip.inc';
?>
--FILE--
<?php
print_r(http_parse_headers(
"Host: localhost\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".
"  three\r\n".
"stop\r\n"
));
?>
--EXPECTF--
Content-type: text/html
X-Powered-By: PHP/%s

Array
(
    [Host] => localhost
    [Nospace] => here<commit_msg>- add second host header<commit_after>--TEST--
http_parse_headers()
--SKIPIF--
<?php 
include 'skip.inc';
?>
--FILE--
<?php
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".
": invalid\r\n".
" : bogus\r\n".
"Folded: one\r\n".
"\ttwo\r\n".
"  three\r\n".
"stop\r\n"
));
?>
--EXPECTF--
Content-type: text/html
X-Powered-By: PHP/%s

Array
(
    [Host] => Array
        (
            [0] => localhost
            [1] => ambigious
        )

    [Nospace] => here
{'fraction_non_alphanumeric': 0.2502472799208704, 'fraction_numerical': 0.003956478733926805, 'mean_word_length': 2.5384615384615383, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7364257', 'n_tokens_mistral': 470, 'n_tokens_neox': 457, 'n_words': 79}