summaryrefslogtreecommitdiff
path: root/tests/broken-client.php
diff options
context:
space:
mode:
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