summaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorBoris Klimenko <[email protected]>2019-10-25 16:18:09 +0300
committerGitHub <[email protected]>2019-10-25 16:18:09 +0300
commit7e920c7bfcafe36eed2afda5fd15de0fea925079 (patch)
tree011e7f5a0ede1fa34ea8a366ff7b1875887b78c7 /tests/http
parent3e335a7c62a0f67b6290fc4982e541eeb93d483c (diff)
fix notice in memleak test
Diffstat (limited to 'tests/http')
-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;
}