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

Commit 755ded6

Browse files
committed
Adds CHANGELOG for #270
1 parent 0725467 commit 755ded6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,23 @@ All notable changes to this project will be documented in this file, in reverse
1010

1111
### Changed
1212

13-
- Nothing.
13+
- [#270](https://github.com/zendframework/zend-diactoros/pull/270) changes the
14+
behavior of `Zend\Diactoros\Server`: it no longer creates an output buffer.
15+
16+
- [#270](https://github.com/zendframework/zend-diactoros/pull/270) changes the
17+
behavior of the two SAPI emitters in two backwards-incompatible ways:
18+
19+
- They no longer auto-inject a `Content-Length` header. If you need this
20+
functionality, zendframework/zend-expressive-helpers 4.1+ provides it via
21+
`Zend\Expressive\Helper\ContentLengthMiddleware`.
22+
23+
- They no longer flush the output buffer. Instead, if headers have been sent,
24+
or the output buffer exists and has a non-zero length, the emitters raise an
25+
exception, as mixed PSR-7/output buffer content creates a blocking issue.
26+
If you are emitting content via `echo`, `print`, `var_dump`, etc., or not
27+
catching PHP errors or exceptions, you will need to either fix your
28+
application to always work with a PSR-7 response, or provide your own
29+
emitters that allow mixed output mechanisms.
1430

1531
### Deprecated
1632

0 commit comments

Comments
 (0)