Laminas Diactoros v1.6.0 Release Notes

Release Date: 2017-09-13 // over 6 years ago
  • โž• Added

    • Nothing.

    ๐Ÿ”„ Changed

    • zendframework/zend-diactoros#270 changes the behavior of Laminas\Diactoros\Server: it no longer creates an output buffer.

    • zendframework/zend-diactoros#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.