diff options
Diffstat (limited to 'php-src/tests/http/echoerr.php')
-rw-r--r-- | php-src/tests/http/echoerr.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/php-src/tests/http/echoerr.php b/php-src/tests/http/echoerr.php new file mode 100644 index 00000000..da2ff4d8 --- /dev/null +++ b/php-src/tests/http/echoerr.php @@ -0,0 +1,12 @@ +<?php + +use \Psr\Http\Message\ServerRequestInterface; +use \Psr\Http\Message\ResponseInterface; + +function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface +{ + error_log(strtoupper($req->getQueryParams()['hello'])); + + $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); + return $resp->withStatus(201); +}
\ No newline at end of file |