summaryrefslogtreecommitdiff
path: root/tests/broken-client.php
blob: ed5bde20744c2a1158ae838a6715506b26c12735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}