diff options
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 |