protected function setProtocol($statuscode)
    {
    	if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' || $statuscode == Response::SC_CONTINUE || $statuscode == Response::SC_SWITCHING_PROTOCOLS || $statuscode == Response::SC_TEMPORARY_REDIRECT) {
        	header('HTTP/1.1 ' . $statuscode);
        } elseif (empty($_SERVER['SERVER_PROTOCOL'])) {
    		header('HTTP/1.0 ' . $statuscode);
    	} else {
    		header($_SERVER['SERVER_PROTOCOL'] . ' ' . $statuscode);
    	}
    }
protected function setProtocol($statuscode)
    {
    	if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' || $statuscode == Response::SC_CONTINUE || $statuscode == Response::SC_SWITCHING_PROTOCOLS || $statuscode == Response::SC_TEMPORARY_REDIRECT) {
        	header('HTTP/1.1 ' . $statuscode);
        } elseif (empty($_SERVER['SERVER_PROTOCOL'])) {
    		header('HTTP/1.0 ' . $statuscode);
    	} else {
    		header($_SERVER['SERVER_PROTOCOL'] . ' ' . $statuscode);
    	}
    }
protected function setProtocol ( $ statuscode ) { if ( $ _SERVER [ 'SERVER_PROTOCOL' ] == 'HTTP/1.1' || $ statuscode == Response :: SC_CONTINUE || $ statuscode == Response :: SC_SWITCHING_PROTOCOLS || $ statuscode == Response :: SC_TEMPORARY_REDIRECT ) { header ( 'HTTP/1.1 ' . $ statuscode ) ; } elseif ( empty ( $ _SERVER [ 'SERVER_PROTOCOL' ] ) ) { header ( 'HTTP/1.0 ' . $ statuscode ) ; } else { header ( $ _SERVER [ 'SERVER_PROTOCOL' ] . ' ' . $ statuscode ) ; } }
setProtocol
all response protocol decisions made here
handle the exceptions to rules for protocol 1.1 vs 1.0
default to 1.0 when protocol not specified
RFC @ http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10
@param statuscode $statuscode
setProtocol all response protocol decisions made here handle the exceptions to rules for protocol 1 . 1 vs 1 . 0 default to 1 . 0 when protocol not specified RFC