~ancarda/psr7-string-stream

ref: 0293ef3ccf6bcadfe67eefbbf7b9b27503344ee2 psr7-string-stream/tests/StringStreamTest.php -rw-r--r-- 5.5 KiB
Fix write() to not assume appending is correct

This commit rewrites the `write()' function to check if it's at EOF
before appending. Now the function is able to prepend if at SOF, and
can also overwrite data in the middle of a stream.
Initial commit