summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/header_redirection_008.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/header_redirection_008.phpt')
-rw-r--r--ext/standard/tests/general_functions/header_redirection_008.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/header_redirection_008.phpt b/ext/standard/tests/general_functions/header_redirection_008.phpt
new file mode 100644
index 000000000..50993707c
--- /dev/null
+++ b/ext/standard/tests/general_functions/header_redirection_008.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Location: headers do not override the 302 Found response code
+--CGI--
+--FILE--
+<?php
+header('HTTP/1.1 302 Found');
+header('Location: http://example.com/');
+?>
+--EXPECTHEADERS--
+Status: 302 Found
+Location: http://example.com/
+--EXPECT--