summaryrefslogtreecommitdiff
path: root/tests/http/memleak.php
blob: 2df7ae6305052d8ba4f9e688ca556247bb8624b0 (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;
}