PSR-7 HTTP Message implementation
SplFileInfo
by the UploadedFile
class. The signatures of getSize()
are potentially incompatible, and UploadedFile
is intended to work with arbitrary PHP and PSR-7 streams, whereas SplFileInfo
can only model files on the filesystem. While this is technically a BC break, we are treating it as a bugfix, as the class was broken for many use cases.UploadedFile
class to extend SplFileInfo
, allowing developers to make use of those features in their applications.Zend\Diactoros\Uri
class when invalid UTF-8 characters are present the user-info, path, or query string, ensuring they are URL-encoded before being consumed. Previously, such characters could result in a fatal error, which was particularly problematic when marshaling the request URI for an application request cycle.#370 updates Zend\Diactoros\marshalHeadersFromSapi()
to ensure all underscores in header name keys are converted to dashes (fixing issues with header names such as CONTENT_SECURITY_POLICY
, which would previously resolve improperly to content-security_policy
).
#370 updates Zend\Diactoros\marshalHeadersFromSapi()
to ignore header names from the $server
array that resolve to integers; previously, it would raise a fatal error.
$_SERVER['HTTPS']
value such that an empty HTTPS-key will result in a scheme of http
and not https
.$_SERVER['HTTPS']
value
such that an empty HTTPS-key will result in a scheme of http
and not
https
.phpdbg
to the list of accepted non-SAPI enviornments for purposes
of calling UploadedFile::moveTo()
.0
or 0
from the SAPI, ensuring they are detected and injected into the ServerRequest properly.0
or 0
from the
SAPI, ensuring they are detected and injected into the ServerRequest properly.