Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

zend-diactoros 1.6.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 13 Sep 14:49
· 412 commits to master since this release

Added

  • Nothing.

Changed

  • #270 changes the behavior of Zend\Diactoros\Server: it no longer creates an output buffer.

  • #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, zendframework/zend-expressive-helpers 4.1+ provides it via Zend\Expressive\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.