summaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-05 12:32:46 +0300
committerWolfy-J <[email protected]>2019-05-05 12:32:46 +0300
commitf8a76de00b90b0d3018ed5af1387cb57d2210fc0 (patch)
treecb320d539de6834e115f66a1e0a9ddc5a37f9842 /tests/http
parente6acf9d57099c69ce58b1121716528825095814f (diff)
more limit tests
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/memleak.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/http/memleak.php b/tests/http/memleak.php
new file mode 100644
index 00000000..82f08f88
--- /dev/null
+++ b/tests/http/memleak.php
@@ -0,0 +1,12 @@
+<?php
+
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
+
+$mem = '';
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ $mem .= str_repeat(" ", 1024*1024);
+ return $resp;
+} \ No newline at end of file