summaryrefslogtreecommitdiff
path: root/tests/memleak.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-14 13:27:35 +0300
committerWolfy-J <[email protected]>2020-12-14 13:27:35 +0300
commit00b42663891713f142a6cc67bcccdc31353daeb2 (patch)
tree1c3966f18c15f3815e47cb065917b314be23472c /tests/memleak.php
parent8203dc4d76624f4fceddff49b8a1aba9d525fc73 (diff)
- removed old RoadRunner code
- added new RR source code
Diffstat (limited to 'tests/memleak.php')
-rw-r--r--tests/memleak.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/memleak.php b/tests/memleak.php
index b78a76c0..9a5376f0 100644
--- a/tests/memleak.php
+++ b/tests/memleak.php
@@ -5,11 +5,11 @@ declare(strict_types=1);
use Spiral\Goridge\StreamRelay;
use Spiral\RoadRunner\Worker as RoadRunner;
-require dirname(__DIR__) . "/vendor_php/autoload.php";
+require __DIR__ . "/vendor/autoload.php";
$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));
$mem = '';
-while($rr->receive($ctx)){
+while($rr->waitPayload()){
$mem .= str_repeat(" ", 1024*1024);
$rr->send("");
-} \ No newline at end of file
+}