PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
laminas
/
laminas-diactoros
/
src
/
functions
<?php declare(strict_types=1); namespace Laminas\Diactoros; use function preg_match; /** * Return HTTP protocol version (X.Y) as discovered within a `$_SERVER` array. * * @throws Exception\UnrecognizedProtocolVersionException if the * $server['SERVER_PROTOCOL'] value is malformed. */ function marshalProtocolVersionFromSapi(array $server) : string { if (! isset($server['SERVER_PROTOCOL'])) { return '1.1'; } if (! preg_match('#^(HTTP/)?(?P<version>[1-9]\d*(?:\.\d)?)$#', $server['SERVER_PROTOCOL'], $matches)) { throw Exception\UnrecognizedProtocolVersionException::forVersion( (string) $server['SERVER_PROTOCOL'] ); } return $matches['version']; }
[-] marshal_uri_from_sapi.legacy.php
[edit]
[-] marshal_method_from_sapi.legacy.php
[edit]
[+]
..
[-] create_uploaded_file.php
[edit]
[-] marshal_headers_from_sapi.legacy.php
[edit]
[-] parse_cookie_header.php
[edit]
[-] normalize_server.php
[edit]
[-] parse_cookie_header.legacy.php
[edit]
[-] marshal_method_from_sapi.php
[edit]
[-] marshal_headers_from_sapi.php
[edit]
[-] marshal_protocol_version_from_sapi.php
[edit]
[-] normalize_uploaded_files.legacy.php
[edit]
[-] normalize_server.legacy.php
[edit]
[-] normalize_uploaded_files.php
[edit]
[-] marshal_protocol_version_from_sapi.legacy.php
[edit]
[-] create_uploaded_file.legacy.php
[edit]
[-] marshal_uri_from_sapi.php
[edit]