summaryrefslogtreecommitdiffhomepage
path: root/test/php/auth/index.php
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-12-10 19:28:41 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2020-12-10 19:28:41 +0000
commit16ac829c8f902d847ba63604052cc16aa4bed9ce (patch)
tree7e25a9551caf21b617c674a1f999e6e4f462b836 /test/php/auth/index.php
parent7be62c3c213c3da1da1a45c8db16192eb0ed14d8 (diff)
downloadunit-16ac829c8f902d847ba63604052cc16aa4bed9ce.tar.gz
unit-16ac829c8f902d847ba63604052cc16aa4bed9ce.tar.bz2
Tests: added tests for PHP_AUTH_* variables.
Diffstat (limited to '')
-rw-r--r--test/php/auth/index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/php/auth/index.php b/test/php/auth/index.php
new file mode 100644
index 00000000..d77076d8
--- /dev/null
+++ b/test/php/auth/index.php
@@ -0,0 +1,7 @@
+<?php
+
+header('X-Digest: ' . (isset($_SERVER['PHP_AUTH_DIGEST']) ? $_SERVER['PHP_AUTH_DIGEST'] : 'not set'));
+header('X-User: ' . (isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : 'not set'));
+header('X-Password: ' . (isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : 'not set'));
+
+?>