1 # http\Message http\Message::setHttpVersion(string $http_version)
3 Set the HTTP protocol version of the message.
4 See http\Message::getHttpVersion().
9 The protocol version, e.g. "1.1", optionally prefixed by "HTTP/".
17 * E_MALFORMED_HEADERS, if the version separator is non-standard.
21 * E_MALFORMED_HEADERS, if the version could not be parsed.
26 $message = new http\Message;
27 var_dump($message->getHttpVersion());
28 $message->setHttpVersion("HTTP/1_0");
29 var_dump($message->getHttpVersion());
35 Notice: Non-standard version separator '_' in HTTP protocol version 'HTTP/1_0'