summaryrefslogtreecommitdiff
path: root/tests/memleak.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/memleak.php')
-rw-r--r--tests/memleak.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/memleak.php b/tests/memleak.php
new file mode 100644
index 00000000..b78a76c0
--- /dev/null
+++ b/tests/memleak.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+use Spiral\Goridge\StreamRelay;
+use Spiral\RoadRunner\Worker as RoadRunner;
+
+require dirname(__DIR__) . "/vendor_php/autoload.php";
+
+$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));
+$mem = '';
+while($rr->receive($ctx)){
+ $mem .= str_repeat(" ", 1024*1024);
+ $rr->send("");
+} \ No newline at end of file