1
0
mirror of https://github.com/danog/byte-stream.git synced 2024-12-03 09:47:49 +01:00
Commit Graph

26 Commits

Author SHA1 Message Date
Niklas Keller
1b84c81bb2
Add line delimited JSON parser (#65) 2019-08-22 23:36:28 +02:00
Niklas Keller
33daa23ab1 Add 'b' flag to web SAPI streams 2019-06-03 23:05:11 +02:00
d8cc314d62 Add web SAPI input/output stream getter functions (#61) 2019-06-03 23:01:43 +02:00
Aaron Piotrowski
2dda482685 Add getStd*() functions 2018-10-22 20:36:00 +02:00
Niklas Keller
d161589772 Apply PSR-2 2018-09-22 16:04:00 +02:00
Niklas Keller
a4cf31f089 Add buffer test 2018-09-22 16:04:00 +02:00
Niklas Keller
75aa20de7c Add buffer function
This simplifies buffering streams by not having to construct a Message / Payload object.
2018-09-22 16:04:00 +02:00
Niklas Keller
1b0b8daed4 Polyfill STDOUT and STDERR on SAPIs not being CLI
STDERR is used by amphp/parallel for error forwarding from children. STDERR gets written to the error log in case of Apache and similar locations for other SAPIs.

This also ensures STDOUT / STDERR can always be used and only a single stream ID exists for STDOUT / STDERR, which might otherwise error for libuv if people open 'php://stderr' multiple times.

Fixes amphp/parallel-functions#6.
Fixes amphp/parallel#34.
2018-01-12 20:43:00 +01:00
Niklas Keller
f63b98990e Optimize memory consumption of Amp\ByteStream\pipe 2017-10-17 09:22:17 +02:00
Niklas Keller
55a7118da9 Add .editorconfig and fix code style 2017-05-07 22:14:45 +02:00
Niklas Keller
bf90335bb6 Major API change + merged Reader and Writer from amphp/socket 2017-04-30 08:33:16 +02:00
Niklas Keller
16fc80ae3b Update and fix php-cs-fixer and code style 2017-04-26 08:27:52 +02:00
Niklas Keller
5ed3a00d33 Fix minor coding issues and typos 2017-04-26 08:17:19 +02:00
Aaron Piotrowski
5e250f7c79 Refactor ReadableStream and Message 2017-04-12 00:43:48 -05:00
Aaron Piotrowski
e0d770ff9a Refactor pipe()
Read in chunks instead of buffering
2017-04-11 19:12:25 -05:00
Aaron Piotrowski
858a76e675 Split into readable and writable stream 2017-03-23 18:38:15 -05:00
Aaron Piotrowski
4414c6bbe4 Update for async-interop merge and other Amp changes; changed namespace to ByteStream 2017-03-16 16:49:09 -05:00
Aaron Piotrowski
1a047f3f78 Move internal functions to Internal namespace 2017-01-09 10:53:36 -06:00
Aaron Piotrowski
e72bc00605 Stream → ByteStream
Avoid confusion with Amp\Stream.
2017-01-09 10:52:29 -06:00
Aaron Piotrowski
772a5e3c7a Update for async-interop namespace change 2017-01-09 10:29:08 -06:00
Aaron Piotrowski
e258c7b50d Drop strict types 2016-12-29 23:09:06 -06:00
Aaron Piotrowski
32df68151a Awaitable → Promise 2016-11-14 15:05:19 -06:00
Aaron Piotrowski
6990d8675e Move strict types declaration 2016-08-18 11:00:38 -05:00
Aaron Piotrowski
20c4ddf5a7 Use strict types 2016-08-16 16:23:46 -05:00
Aaron Piotrowski
cbee269f22 PHP 7 only upgrade 2016-08-15 17:19:32 -05:00
Aaron Piotrowski
b1950f87f5 Initial commit 2016-08-10 16:52:25 -05:00