diff options
author | Valery Piashchynski <[email protected]> | 2021-11-25 15:31:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-11-25 15:31:24 +0300 |
commit | 6123a45bd77f50b137d46577089b7b43c692b2d1 (patch) | |
tree | fb688befd82ada5ee8fa466f3393b9db37b09538 /tests | |
parent | 6c5e3ab6c01d31caa2d14930c188bae697c5cd48 (diff) |
update goridge
print bad header in the error message
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/crc_error.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/crc_error.php b/tests/crc_error.php new file mode 100644 index 00000000..a769fb1e --- /dev/null +++ b/tests/crc_error.php @@ -0,0 +1,17 @@ +<?php + +declare(strict_types=1); + +use Spiral\Goridge\StreamRelay; +use Spiral\RoadRunner\Worker as RoadRunner; + +require __DIR__ . "/vendor/autoload.php"; + +fwrite(STDOUT, "warning: some weird php error"); + +$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT)); + +while($rr->waitPayload()){ + sleep(3); + $rr->respond(new \Spiral\RoadRunner\Payload("")); +} |