Skip to content

1.6.0

@weierophinney weierophinney tagged this 13 Sep 14:47
Based on https://github.com/zendframework/zend-diactoros/releases/tag/1.6.0 (commit 294edeb774c6a808b38bdd716b41bd55c0aff50d in this repo)

Added
-----

- Nothing.

Changed
-------

- [zendframework/zend-diactoros#270](https://github.com/zendframework/zend-diactoros/pull/270) changes the
  behavior of `Laminas\Diactoros\Server`: it no longer creates an output buffer.

- [zendframework/zend-diactoros#270](https://github.com/zendframework/zend-diactoros/pull/270) changes the
  behavior of the two SAPI emitters in two backwards-incompatible ways:

  - They no longer auto-inject a `Content-Length` header. If you need this
    functionality, mezzio/mezzio-helpers 4.1+ provides it via
    `Mezzio\Helper\ContentLengthMiddleware`.

  - They no longer flush the output buffer. Instead, if headers have been sent,
    or the output buffer exists and has a non-zero length, the emitters raise an
    exception, as mixed PSR-7/output buffer content creates a blocking issue.
    If you are emitting content via `echo`, `print`, `var_dump`, etc., or not
    catching PHP errors or exceptions, you will need to either fix your
    application to always work with a PSR-7 response, or provide your own
    emitters that allow mixed output mechanisms.

Deprecated
----------

- Nothing.

Removed
-------

- Nothing.

Fixed
-----

- Nothing.
Assets 2
Loading