summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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