Skip to content

Releases: amphp/byte-stream

1.1.5

08 Oct 10:46
v1.1.5
Compare
Choose a tag to compare
  • Use stream_get_contents instead of fread for all resource input streams except for UDP streams. This resolves amphp/artax#138.

1.1.4

07 Oct 08:38
v1.1.4
Compare
Choose a tag to compare
  • Fixed pending Message::read() not failing on error.

1.1.3

15 Sep 06:15
v1.1.3
fdcf400
Compare
Choose a tag to compare
  • Fixed race condition for closed streams. If a stream has been closed, but the final chunk not written yet, a ResourceOutputStream didn't throw an exception as expected, but instead resulted in an InvalidWatcherError.

1.1.2

15 Jul 08:28
Compare
Choose a tag to compare
  • Fixed an issue with writes filling the internal buffer exactly. (StreamException thrown if internal buffer is full and a fwrite() call thus returning 0.)

1.1.1

28 Jun 10:17
v1.1.1
Compare
Choose a tag to compare
  • Fixed an issue in Message hiding exceptions when streaming.

1.1.0

23 Jun 14:38
v1.1.0
Compare
Choose a tag to compare
  • Added ResourceInputStream::reference() and ResourceInputStream::unreference()

1.0.3

19 Jun 06:45
v1.0.3
Compare
Choose a tag to compare
  • Suppress errors on close in resource streams.

1.0.2

19 Jun 05:14
48c4e12
Compare
Choose a tag to compare
  • Fixed an issue in ResourceOutputStream when writing large data chunks and the $chunkSize provided to the constructor was null.
  • ResourceInputStream closes the readable side of the stream with stream_socket_shutdown (or closes the stream with fclose for read-only streams) when the close method is invoked. The GC was relied upon for this behavior before, but was inconsistent.
  • ResourceOutputStream now closes the writable side of the stream with stream_socket_shutdown (or closes the stream with fclose for write-only streams) when the close method is invoked. The GC was relied upon for this behavior before, but was inconsistent.

1.0.1

17 Jun 15:49
v1.0.1
Compare
Choose a tag to compare
  • Fixed warning on already closed resources.

1.0.0

15 Jun 16:06
v1.0.0
Compare
Choose a tag to compare

Initial release.