zend-diactoros v1.6.0 Release Notes
Release Date: 2017-09-13 // over 6 years ago-
โ 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 viaZend\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.
- They no longer auto-inject a
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- Nothing.