summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/header_redirection_014.phpt
blob: a5fb6e8fec6828abd8b36a083596b44d8ced330a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Location: headers do not override the 399 Choose Your Own Adventure response code
--CGI--
--FILE--
<?php
header('HTTP/1.1 399 Choose Your Own Adventure');
header('Location: http://example.com/');
?>
--EXPECTHEADERS--
Status: 399 Choose Your Own Adventure
Location: http://example.com/
--EXPECT--