diff options
author | Wolfy-J <[email protected]> | 2019-05-05 12:32:46 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-05 12:32:46 +0300 |
commit | f8a76de00b90b0d3018ed5af1387cb57d2210fc0 (patch) | |
tree | cb320d539de6834e115f66a1e0a9ddc5a37f9842 /tests/http | |
parent | e6acf9d57099c69ce58b1121716528825095814f (diff) |
more limit tests
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/memleak.php | 12 |
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 |