laminas / laminas-diactoros

PSR HTTP Message implementations
https://docs.laminas.dev/laminas-diactoros/
BSD 3-Clause "New" or "Revised" License
483 stars 63 forks source link

Remove PhpInputStream #154

Closed weierophinney closed 1 year ago

weierophinney commented 1 year ago
Q A
Documentation yes
Bugfix no
BC Break yes
New Feature no
RFC no
QA no

Description

The main PhpInputStream existed was because prior to PHP 5.6, php://input was read-once and non-seekable. As of 5.6, it's reusable AND seekable, which means there's no reason to keep the special implementation, particularly as it causes bugs (see #150)

This patch:

Fixes #150

Xerkus commented 1 year ago

Thank you.