summaryrefslogtreecommitdiff
path: root/tests/http/memleak.php
blob: 82f08f886acd09e0772524dd1814d78a120138ab (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}