5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
10 var_export(http_split_response("HTTP/1.1 200 Ok\r\nContent-Type: text/plain\r\nContent-Language: de-AT\r\nDate: Sat, 22 Jan 2005 18:10:02 GMT\r\n\r\nHallo Du!)"));
13 Content-type: text/html
20 'Content-Type' => 'text/plain',
21 'Content-Language' => 'de-AT',
22 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',