﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
16885	"Warning emited in Header parsing when server does not specify a response ""Message"""	dd32	dd32	"As reported in #16855 by cogmios, the HTTP API class can emit a warning in the case that a server does not specify the response message.

One example of a URL which causes this is:  http://wallpapers.protonet.ru/section/foto/O/ which has a response of:
{{{
HTTP/1.1 404
Server: nginx/0.6.32
}}}

causing:
{{{
Undefined offset: 2 in \wp-includes\class-http.php on line <i>442</i>
}}}

Code in question: [http://core.trac.wordpress.org/browser/trunk/wp-includes/class-http.php#L442 list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);]

One potential patch would be:
{{{
$p = explode(' ', $tempheader, 3);
array_shift($p);
$response['code'] = array_shift($p);
$response['message'] = array_shift($p);
}}}"	defect (bug)	closed	normal	3.2	HTTP	3.1	normal	fixed	has-patch	azizur
