summaryrefslogtreecommitdiff
path: root/tests/broken-client.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2017-12-26 19:14:53 +0300
committerWolfy-J <[email protected]>2017-12-26 19:14:53 +0300
commite229d83dea4bbe9d0cfe6569c8fbe239690aafb9 (patch)
tree2d4887ffdb167d660b705415f0617458490d0b9f /tests/broken-client.php
init
Diffstat (limited to 'tests/broken-client.php')
-rw-r--r--tests/broken-client.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/broken-client.php b/tests/broken-client.php
new file mode 100644
index 00000000..ed5bde20
--- /dev/null
+++ b/tests/broken-client.php
@@ -0,0 +1,17 @@
+<?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)) {
+ echo undefined_function();
+ $rr->send((string)$in);
+} \ No newline at end of file