Changelog History
Page 3
-
v2.1.1 Changes
January 05, 2019โ Added
- Nothing.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- ๐ zendframework/zend-diactoros#349 fixes an issue when marshaling headers with values of
0
or0
from the SAPI, ensuring they are detected and injected into the ServerRequest properly.
-
v2.1.1.p2
March 23, 2020 -
v2.1.0 Changes
December 20, 2018โ Added
- ๐ zendframework/zend-diactoros#345 adds support for PHP 7.3.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- Nothing.
-
v2.1.0.p2
March 23, 2020 -
v2.0.3 Changes
January 05, 2019โ Added
- Nothing.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- ๐ zendframework/zend-diactoros#349 fixes an issue when marshaling headers with values of
0
or0
from the SAPI, ensuring they are detected and injected into the ServerRequest properly.
-
v2.0.2 Changes
December 20, 2018โ Added
- Nothing.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- zendframework/zend-diactoros#344 provides a fix to ensure that headers with a value of "0" are retained.
-
v2.0.1 Changes
December 03, 2018โ Added
- Nothing.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- zendframework/zend-diactoros#337 ensures that the
ServerRequestFactory::createServerRequest()
method creates aphp://temp
stream instead of aphp::input
stream, in compliance with the PSR-17 specification.
-
v2.0.0 Changes
September 27, 2018โ Added
zendframework/zend-diactoros#326 adds PSR-17 HTTP Message Factory implementations, including:
Laminas\Diactoros\RequestFactory
Laminas\Diactoros\ResponseFactory
Laminas\Diactoros\ServerRequestFactory
Laminas\Diactoros\StreamFactory
Laminas\Diactoros\UploadedFileFactory
Laminas\Diactoros\UriFactory
These factories may be used to produce the associated instances; we encourage users to rely on the PSR-17 factory interfaces to allow exchanging PSR-7 implementations within their applications.
๐ฆ zendframework/zend-diactoros#328 adds a package-level exception interface,
Laminas\Diactoros\Exception\ExceptionInterface
, and several implementations for specific exceptions raised within the package. These include:Laminas\Diactoros\Exception\DeserializationException
(extendsUnexpectedValueException
)Laminas\Diactoros\Exception\InvalidArgumentException
(extendsInvalidArgumentException
)Laminas\Diactoros\Exception\InvalidStreamPointerPositionException
(extendsRuntimeException
)Laminas\Diactoros\Exception\SerializationException
(extendsUnexpectedValueException
)Laminas\Diactoros\Exception\UnreadableStreamException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UnrecognizedProtocolVersionException
(extendsUnexpectedValueException
)Laminas\Diactoros\Exception\UnrewindableStreamException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UnseekableStreamException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UntellableStreamException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UnwritableStreamException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UploadedFileAlreadyMovedException
(extendsRuntimeException
)Laminas\Diactoros\Exception\UploadedFileErrorException
(extendsRuntimeException
)
๐ Changed
zendframework/zend-diactoros#329 adds return type hints and scalar parameter type hints wherever possible. The changes were done to help improve code quality, in part by reducing manual type checking. If you are extending any classes, you may need to update your signatures; check the signatures of the class(es) you are extending for changes.
zendframework/zend-diactoros#162 modifies
Serializer\Request
such that it now no longer raises anUnexpectedValueException
via itstoString()
method when an unexpected HTTP method is encountered; this can be done safely, as the value can never be invalid due to other changes in the same patch.zendframework/zend-diactoros#162 modifies
RequestTrait
such that it now invalidates non-string method arguments to either the constructor orwithMethod()
, raising anInvalidArgumentException
for any that do not validate.
๐ Deprecated
- Nothing.
โ Removed
๐ zendframework/zend-diactoros#308 removes the following methods from the
ServerRequestFactory
class:normalizeServer()
(useLaminas\Diactoros\normalizeServer()
instead)marshalHeaders()
(useLaminas\Diactoros\marshalHeadersFromSapi()
instead)marshalUriFromServer()
(useLaminas\Diactoros\marshalUriFromSapi()
instead)marshalRequestUri()
(useUri::getPath()
from theUri
instance returned bymarshalUriFromSapi()
instead)marshalHostAndPortFromHeaders()
(useUri::getHost()
andUri::getPort()
from theUri
instances returned bymarshalUriFromSapi()
instead)stripQueryString()
(useexplode("?", $path, 2)[0]
instead)normalizeFiles()
(useLaminas\Diactoros\normalizeUploadedFiles()
instead)
๐ zendframework/zend-diactoros#295 removes
Laminas\Diactoros\Server
. You can use theRequestHandlerRunner
class from laminas/laminas-httphandlerrunner to provide these capabilities instead.๐ zendframework/zend-diactoros#295 removes
Laminas\Diactoros\Response\EmitterInterface
and the various emitter implementations. These can now be found in the package laminas/laminas-httphandlerrunner, which also provides a PSR-7-implementation agnostic way of using them.
๐ Fixed
- Nothing.
-
v1.8.7 Changes
August 06, 2019โ Added
- Nothing.
๐ Changed
- Nothing.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- zendframework/zend-diactoros#364 modifies detection of HTTPS schemas via the
$_SERVER['HTTPS']
value such that an empty HTTPS-key will result in a scheme ofhttp
and nothttps
.
-
v1.8.6 Changes
September 05, 2018โ Added
- Nothing.
๐ Changed
- ๐ zendframework/zend-diactoros#325 changes the behavior of
ServerRequest::withParsedBody()
. Per PSR-7, it now no longer allows values other than
null
, arrays, or objects.zendframework/zend-diactoros#325 changes the behavior of each of
Request
,ServerRequest
, andResponse
in relation to the validation of header values. Previously, we allowed empty arrays to be provided viawithHeader()
; however, this was contrary to the PSR-7 specification. Empty arrays are no longer allowed.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
zendframework/zend-diactoros#325 ensures that
Uri::withUserInfo()
no longer ignores values of0
(numeric zero).๐ zendframework/zend-diactoros#325 fixes how header values are merged when calling
withAddedHeader()
, ensuring that array keys are ignored.