summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-10-25 16:24:08 +0300
committerGitHub <[email protected]>2019-10-25 16:24:08 +0300
commitb4b1d63e02895e241447b75bbe7f755191c47227 (patch)
tree011e7f5a0ede1fa34ea8a366ff7b1875887b78c7
parent3e335a7c62a0f67b6290fc4982e541eeb93d483c (diff)
parent7e920c7bfcafe36eed2afda5fd15de0fea925079 (diff)
Merge pull request #202 from dasmfm/php-memleak-fix
fix notice in memleak test
-rw-r--r--tests/http/memleak.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/http/memleak.php b/tests/http/memleak.php
index 2df7ae63..197a7fb1 100644
--- a/tests/http/memleak.php
+++ b/tests/http/memleak.php
@@ -3,10 +3,9 @@
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
-$mem = '';
-
function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
+ $mem = '';
$mem .= str_repeat(" ", 1024*1024);
return $resp;
}