Fedora 22 Update: php-zendframework-zend-diactoros-1.3.3-1.fc22
updates at fedoraproject.org
updates at fedoraproject.org
Wed Jan 13 06:25:11 UTC 2016
--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2016-6c487b9589
2016-01-13 01:55:58.698583
--------------------------------------------------------------------------------
Name : php-zendframework-zend-diactoros
Product : Fedora 22
Version : 1.3.3
Release : 1.fc22
URL : https://github.com/zendframework/zend-diactoros
Summary : PSR HTTP Message implementations
Description :
A PHP package containing implementations of the accepted PSR-7 HTTP message
interfaces [1], as well as a "server" implementation similar to node's
http.Server [2].
Autoloader: /usr/share/php/Zend/Diactoros/autoload.php
[1] http://www.php-fig.org/psr/psr-7/
[2] http://nodejs.org/api/http.html
--------------------------------------------------------------------------------
Update Information:
Diff: https://github.com/zendframework/zend-diactoros/compare/1.1.4...1.3.3 ##
1.3.3 - 2016-01-04 ### Added - Nothing. ### Deprecated - Nothing. ###
Removed - Nothing. ### Fixed - [#135](https://github.com/zendframework/zend-
diactoros/pull/135) fixes the behavior of
`ServerRequestFactory::marshalHeaders()` to no longer omit `Cookie` headers
from the aggregated headers. While the values are parsed and injected into the
cookie params, it's useful to have access to the raw headers as well. ##
1.3.2 - 2015-12-22 ### Added - [#124](https://github.com/zendframework/zend-
diactoros/pull/124) adds four more optional arguments to the `ServerRequest`
constructor: - `array $cookies` - `array $queryParams` -
`null|array|object $parsedBody` - `string $protocolVersion`
`ServerRequestFactory` was updated to pass values for each of these parameters
when creating an instance, instead of using the related `with*()` methods on
an instance. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed -
[#122](https://github.com/zendframework/zend-diactoros/pull/122) updates the
`ServerRequestFactory` to retrieve the HTTP protocol version and inject it in
the generated `ServerRequest`, which previously was not performed. ## 1.3.1 -
2015-12-16 ### Added - Nothing. ### Deprecated - Nothing. ### Removed -
Nothing. ### Fixed - [#113](https://github.com/zendframework/zend-
diactoros/pull/113) fixes an issue in the response serializer, ensuring that
the status code in the deserialized response is an integer. -
[#115](https://github.com/zendframework/zend-diactoros/pull/115) fixes an
issue in the various text-basd response types (`TextResponse`, `HtmlResponse`,
and `JsonResponse`); due to the fact that the constructor was not rewinding
the message body stream, `getContents()` was thus returning `null`, as the
pointer was at the end of the stream. The constructor now rewinds the stream
after populating it in the constructor. ## 1.3.0 - 2015-12-15 ### Added -
[#110](https://github.com/zendframework/zend-diactoros/pull/110) adds
`Zend\Diactoros\Response\SapiEmitterTrait`, which provides the following
private method definitions: - `injectContentLength()` - `emitStatusLine()`
- `emitHeaders()` - `flush()` - `filterHeader()` The `SapiEmitter`
implementation has been updated to remove those methods and instead compose
the trait. - [#111](https://github.com/zendframework/zend-diactoros/pull/111)
adds a new emitter implementation, `SapiStreamEmitter`; this emitter type will
loop through the stream instead of emitting it in one go, and supports content
ranges. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed -
Nothing. ## 1.2.1 - 2015-12-15 ### Added - Nothing. ### Deprecated -
Nothing. ### Removed - Nothing. ### Fixed -
[#101](https://github.com/zendframework/zend-diactoros/pull/101) fixes the
`withHeader()` implementation to ensure that if the header existed previously
but using a different casing strategy, the previous version will be removed in
the cloned instance. - [#103](https://github.com/zendframework/zend-
diactoros/pull/103) fixes the constructor of `Response` to ensure that null
status codes are not possible. - [#99](https://github.com/zendframework/zend-
diactoros/pull/99) fixes validation of header values submitted via request and
response constructors as follows: - numeric (integer and float) values are
now properly allowed (this solves some reported issues with setting Content-
Length headers) - invalid header names (non-string values or empty strings)
now raise an exception. - invalid individual header values (non-string,
non-numeric) now raise an exception. ## 1.2.0 - 2015-11-24 ### Added -
[#88](https://github.com/zendframework/zend-diactoros/pull/88) updates the
`SapiEmitter` to emit a `Content-Length` header with the content length as
reported by the response body stream, assuming that
`StreamInterface::getSize()` returns an integer. -
[#77](https://github.com/zendframework/zend-diactoros/pull/77) adds a new
response type, `Zend\Diactoros\Response\TextResponse`, for returning plain
text responses. By default, it sets the content type to `text/plain;
charset=utf-8`; per the other response types, the signature is `new
TextResponse($text, $status = 200, array $headers = [])`. -
[#90](https://github.com/zendframework/zend-diactoros/pull/90) adds a new
`Zend\Diactoros\CallbackStream`, allowing you to back a stream with a PHP
callable (such as a generator) to generate the message content. Its
constructor accepts the callable: `$stream = new CallbackStream($callable);`
### Deprecated - Nothing. ### Removed - Nothing. ### Fixed -
[#77](https://github.com/zendframework/zend-diactoros/pull/77) updates the
`HtmlResponse` to set the charset to utf-8 by default (if no content type
header is provided at instantiation).
--------------------------------------------------------------------------------
References:
[ 1 ] Bug #1285581 - php-zendframework-zend-diactoros-1.3.2 is available
https://bugzilla.redhat.com/show_bug.cgi?id=1285581
--------------------------------------------------------------------------------
This update can be installed with the "yum" update program. Use
su -c 'yum update php-zendframework-zend-diactoros' at the command line.
For more information, refer to "Managing Software with yum",
available at https://docs.fedoraproject.org/yum/.
All packages are signed with the Fedora Project GPG key. More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------
More information about the package-announce
mailing list