Server geändert

This commit is contained in:
aschwarz
2023-04-25 13:16:13 +02:00
parent acc225abac
commit faad1bfa71
966 changed files with 5193 additions and 5193 deletions

View File

@ -11,8 +11,8 @@ use Psr\Http\Message\StreamInterface;
* then appends the zlib.inflate filter. The stream is then converted back
* to a Guzzle stream resource to be used as a Guzzle stream.
*
* @link http://tools.ietf.org/html/rfc1952
* @link http://php.net/manual/en/filters.compression.php
* @link https://tools.ietf.org/html/rfc1952
* @link https://php.net/manual/en/filters.compression.php
*/
class InflateStream implements StreamInterface
{

View File

@ -138,7 +138,7 @@ class Request implements RequestInterface
$this->headerNames['host'] = 'Host';
}
// Ensure Host is the first header.
// See: http://tools.ietf.org/html/rfc7230#section-5.4
// See: https://tools.ietf.org/html/rfc7230#section-5.4
$this->headers = [$header => [$host]] + $this->headers;
}

View File

@ -182,7 +182,7 @@ class ServerRequest extends Request implements ServerRequestInterface
private static function extractHostAndPortFromAuthority($authority)
{
$uri = 'http://'.$authority;
$uri = 'https://'.$authority;
$parts = parse_url($uri);
if (false === $parts) {
return [null, null];

View File

@ -15,8 +15,8 @@ class Stream implements StreamInterface
*
* @var string
*
* @see http://php.net/manual/function.fopen.php
* @see http://php.net/manual/en/function.gzopen.php
* @see https://php.net/manual/function.fopen.php
* @see https://php.net/manual/en/function.gzopen.php
*/
const READABLE_MODES = '/r|a\+|ab\+|w\+|wb\+|x\+|xb\+|c\+|cb\+/';
const WRITABLE_MODES = '/a|w|r\+|rb\+|rw|x|c/';

View File

@ -236,8 +236,8 @@ class UploadedFile implements UploadedFileInterface
/**
* {@inheritdoc}
*
* @see http://php.net/is_uploaded_file
* @see http://php.net/move_uploaded_file
* @see https://php.net/is_uploaded_file
* @see https://php.net/move_uploaded_file
* @param string $targetPath Path to which to move the uploaded file.
* @throws RuntimeException if the upload was not successful.
* @throws InvalidArgumentException if the $path specified is invalid.
@ -287,7 +287,7 @@ class UploadedFile implements UploadedFileInterface
/**
* {@inheritdoc}
*
* @see http://php.net/manual/en/features.file-upload.errors.php
* @see https://php.net/manual/en/features.file-upload.errors.php
* @return int One of PHP's UPLOAD_ERR_XXX constants.
*/
public function getError()

View File

@ -357,7 +357,7 @@ class Uri implements UriInterface
* @param array $parts
*
* @return UriInterface
* @link http://php.net/manual/en/function.parse-url.php
* @link https://php.net/manual/en/function.parse-url.php
*
* @throws \InvalidArgumentException If the components do not form a valid URI.
*/

View File

@ -23,7 +23,7 @@ final class UriNormalizer
/**
* All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
*
* Example: http://example.org/a%c2%b1b → http://example.org/a%C2%B1b
* Example: https://example.org/a%c2%b1b → https://example.org/a%C2%B1b
*/
const CAPITALIZE_PERCENT_ENCODING = 1;
@ -34,14 +34,14 @@ final class UriNormalizer
* hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers and,
* when found in a URI, should be decoded to their corresponding unreserved characters by URI normalizers.
*
* Example: http://example.org/%7Eusern%61me/ → http://example.org/~username/
* Example: https://example.org/%7Eusern%61me/ → https://example.org/~username/
*/
const DECODE_UNRESERVED_CHARACTERS = 2;
/**
* Converts the empty path to "/" for http and https URIs.
*
* Example: http://example.org → http://example.org/
* Example: https://example.org → https://example.org/
*/
const CONVERT_EMPTY_PATH = 4;
@ -61,7 +61,7 @@ final class UriNormalizer
/**
* Removes the default port of the given URI scheme from the URI.
*
* Example: http://example.org:80/ → http://example.org/
* Example: https://example.org:80/ → https://example.org/
*/
const REMOVE_DEFAULT_PORT = 16;
@ -71,7 +71,7 @@ final class UriNormalizer
* Dot-segments in relative-path references are not removed as it would
* change the semantics of the URI reference.
*
* Example: http://example.org/../a/b/../c/./d.html → http://example.org/a/c/d.html
* Example: https://example.org/../a/b/../c/./d.html → https://example.org/a/c/d.html
*/
const REMOVE_DOT_SEGMENTS = 32;
@ -82,7 +82,7 @@ final class UriNormalizer
* But in theory those URIs do not need to be equivalent. So this normalization
* may change the semantics. Encoded slashes (%2F) are not removed.
*
* Example: http://example.org//foo///bar.html → http://example.org/foo/bar.html
* Example: https://example.org//foo///bar.html → https://example.org/foo/bar.html
*/
const REMOVE_DUPLICATE_SLASHES = 64;

View File

@ -18,7 +18,7 @@ final class UriResolver
* @param string $path
*
* @return string
* @link http://tools.ietf.org/html/rfc3986#section-5.2.4
* @link https://tools.ietf.org/html/rfc3986#section-5.2.4
*/
public static function removeDotSegments($path)
{
@ -57,7 +57,7 @@ final class UriResolver
* @param UriInterface $rel Relative URI
*
* @return UriInterface
* @link http://tools.ietf.org/html/rfc3986#section-5.2
* @link https://tools.ietf.org/html/rfc3986#section-5.2
*/
public static function resolve(UriInterface $base, UriInterface $rel)
{
@ -118,11 +118,11 @@ final class UriResolver
* One use-case is to use the current request URI as base URI and then generate relative links in your documents
* to reduce the document size or offer self-contained downloadable document archives.
*
* $base = new Uri('http://example.com/a/b/');
* echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
* echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
* echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
* echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'.
* $base = new Uri('https://example.com/a/b/');
* echo UriResolver::relativize($base, new Uri('https://example.com/a/b/c')); // prints 'c'.
* echo UriResolver::relativize($base, new Uri('https://example.com/a/x/y')); // prints '../x/y'.
* echo UriResolver::relativize($base, new Uri('https://example.com/a/b/?q')); // prints '?q'.
* echo UriResolver::relativize($base, new Uri('https://example.org/a/b/')); // prints '//example.org/a/b/'.
*
* This method also accepts a target that is already relative and will try to relativize it further. Only a
* relative-path reference will be returned as-is.

View File

@ -632,7 +632,7 @@ function mimetype_from_filename($filename)
* @param $extension string The file extension.
*
* @return string|null
* @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
* @link https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
*/
function mimetype_from_extension($extension)
{