summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/header_redirection_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/header_redirection_002.phpt')
-rw-r--r--ext/standard/tests/general_functions/header_redirection_002.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/header_redirection_002.phpt b/ext/standard/tests/general_functions/header_redirection_002.phpt
new file mode 100644
index 000000000..2bf6dec51
--- /dev/null
+++ b/ext/standard/tests/general_functions/header_redirection_002.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Location: headers override non-201 and 3xx response codes
+--CGI--
+--FILE--
+<?php
+header("HTTP/1.1 418 I'm a Teapot");
+header('Location: http://example.com/');
+?>
+--EXPECTHEADERS--
+Status: 302 Moved Temporarily
+Location: http://example.com/
+--EXPECT--