Closed calvinalkan closed 1 year ago
Thanks for the report. This has been changed in #217. You might also want to check #99 on the topic. TL;DR, your test case was relying on an unspecified behavior of PSR-7. It's thus implementation specific. I'm closing as this change of behavior is expected in v1.6.
You might also want to check #99 on the topic.
I have and understand it's not specified.
It's thus implementation specific
True. We have been using nyholm/psr7 in a private project.
And 1.6.0 changed the specific implementation of nyholm/psr7, causing a complete BC break.
Sorry about that. You know the meme: every bugfix is a BC break for someone...
I have read all the related discussions around https://github.com/Nyholm/psr7/pull/217 and can't understand why this was merged.
Take the following test:
On 1.5.1 this test passes.
On 1.6.0:
What is the point of this code?
Any call to write() overwrites any previous contents on a newly created stream?