diff options
author | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
commit | e229d83dea4bbe9d0cfe6569c8fbe239690aafb9 (patch) | |
tree | 2d4887ffdb167d660b705415f0617458490d0b9f /tests/error-client.php |
init
Diffstat (limited to 'tests/error-client.php')
-rw-r--r-- | tests/error-client.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/error-client.php b/tests/error-client.php new file mode 100644 index 00000000..113d1197 --- /dev/null +++ b/tests/error-client.php @@ -0,0 +1,16 @@ +<?php + +use Spiral\Goridge; +use Spiral\RoadRunner; + +/** + * echo client over pipes. + */ +ini_set('display_errors', 'stderr'); +require "vendor/autoload.php"; + +$rr = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT)); + +while ($in = $rr->receive($ctx)) { + $rr->error((string)$in); +}
\ No newline at end of file |