diff options
author | Valery Piashchynski <[email protected]> | 2020-12-15 13:31:40 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-15 13:31:40 +0300 |
commit | b44d272312389691920e42e5295395bef0d3b769 (patch) | |
tree | 1c826999423e59db5b7dab1184725e22468ecfbd /tests/memleak.php | |
parent | 673da74925dee5c62064d3304289ae81cb499217 (diff) | |
parent | 7b0a6720c21056ed4b922eb5b1b8a91a44dc3638 (diff) |
Merge pull request #447 from spiral/feature/goridge3
Feature/goridge3
Diffstat (limited to 'tests/memleak.php')
-rw-r--r-- | tests/memleak.php | 6 |
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 +} |