summaryrefslogtreecommitdiff
path: root/tests/http/memleak.php
blob: 197a7fb16a9b77a95a205d8175ebcd25a98ffb4e (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
    $mem = '';
    $mem .= str_repeat(" ", 1024*1024);
    return $resp;
}