--TEST-- Bug #51903 (simplexml_load_file() doesn't use HTTP headers) --SKIPIF-- --FILE-- \n" . "\xE4\xF6\xFC\n", "data://text/plain,HTTP/1.1 200 OK\r\n" . "Content-Type: text/xml; charset=ISO-8859-1; foo=bar\r\n\r\n" . "\n" . "\xE4\xF6\xFC\n", "data://text/plain,HTTP/1.1 200 OK\r\n" . "Content-Type: text/xml; charset=\"ISO-8859-1\" ; foo=bar\r\n\r\n" . "\n" . "\xE4\xF6\xFC\n", ]; $pid = http_server('tcp://127.0.0.1:12342', $responses); for ($i = 0; $i < count($responses); $i++) { $sxe = simplexml_load_file('http://127.0.0.1:12342/'); echo "$sxe\n"; } http_server_kill($pid); ?> --EXPECT-- äöü äöü äöü