[wp-trac] [WordPress Trac] #16885: Warning emited in Header parsing when server does not specify a response "Message"
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 19 01:38:06 UTC 2011
#16885: Warning emited in Header parsing when server does not specify a response
"Message"
------------------------------+------------------------------
Reporter: dd32 | Owner: dd32
Type: enhancement | Status: accepted
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+------------------------------
Comment (by cogmios):
"Notice: Undefined offset: 1 in C:\xampp\htdocs\wp2\wp-includes\class-
http.php on line 457"....
I assumed it was the changed code..... but was this line after it..... :
{{{
list($key, $value) = explode(':', $tempheader, 2);
}}}
because i dropped the continue
{{{
if ( false === strpos($tempheader, ':') ) {
$p = explode(' ', $tempheader, 3);
array_shift($p);
$response['code'] = array_shift($p);
$response['message'] = array_shift($p);
continue;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16885#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list