php-src/ext/standard/tests/streams/bug64433_srv.inc

14 lines
236 B
PHP

if(!empty($_REQUEST["redir"])) {
echo "REDIRECTED\n";
return;
}
if(!empty($_REQUEST["loc"])) {
header("Location: index.php?redir=1");
}
if(!empty($_REQUEST["status"])) {
http_response_code($_REQUEST["status"]);
}
echo "HELLO!\n";