From the documentation page, first comment:
if( !function_exists( 'http_parse_headers' ) ) {
function http_parse_headers( $header )
{
$retVal = array();
$fields = explode("
", preg_replace('/x0Dx0A[x09x20]+/', ' ', $header));
foreach( $fields as $field ) {
if( preg_match('/([^:]+): (.+)/m', $field, $match) ) {
$match[1] = preg_replace('/(?<=^|[x09x20x2D])./e', 'strtoupper("")', strtolower(trim($match[1])));
if( isset($retVal[$match[1]]) ) {
$retVal[$match[1]] = array($retVal[$match[1]], $match[2]);
} else {
$retVal[$match[1]] = trim($match[2]);
}
}
}
return $retVal;
}
}
Alternatively, you may want to read how to install a PECL extension on Windows, to be honest, I don't know anything about that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…