summaryrefslogtreecommitdiffhomepage
path: root/test/php
diff options
context:
space:
mode:
Diffstat (limited to 'test/php')
-rw-r--r--test/php/header/index.php4
-rw-r--r--test/php/script/phpinfo.php3
-rw-r--r--test/php/variables/index.php1
3 files changed, 8 insertions, 0 deletions
diff --git a/test/php/header/index.php b/test/php/header/index.php
new file mode 100644
index 00000000..1aa5ca04
--- /dev/null
+++ b/test/php/header/index.php
@@ -0,0 +1,4 @@
+<?php
+header($_SERVER['HTTP_X_HEADER']);
+header('Content-Length: 0');
+?>
diff --git a/test/php/script/phpinfo.php b/test/php/script/phpinfo.php
new file mode 100644
index 00000000..cf608608
--- /dev/null
+++ b/test/php/script/phpinfo.php
@@ -0,0 +1,3 @@
+<?php
+phpinfo();
+?>
diff --git a/test/php/variables/index.php b/test/php/variables/index.php
index 8f2e3bfc..279efc79 100644
--- a/test/php/variables/index.php
+++ b/test/php/variables/index.php
@@ -4,6 +4,7 @@ $body = file_get_contents('php://input');
header('Content-Length: ' . strlen($body));
header('Request-Method: ' . $_SERVER['REQUEST_METHOD']);
header('Request-Uri: ' . $_SERVER['REQUEST_URI']);
+header('Path-Info: ' . $_SERVER['PATH_INFO']);
header('Http-Host: ' . $_SERVER['HTTP_HOST']);
header('Server-Protocol: ' . $_SERVER['SERVER_PROTOCOL']);
header('Server-Software: ' . $_SERVER['SERVER_SOFTWARE']);