From b3a65a2c0fd36d0fc9a9fe3b6c5dac75a0359f22 Mon Sep 17 00:00:00 2001 From: Micah Andersen Date: Thu, 18 Jul 2019 16:02:05 -0400 Subject: [PATCH] Added a note about PHP environment variables to the PHP test file (#16) --- mod_authnz_external/test/test.pipe.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod_authnz_external/test/test.pipe.php b/mod_authnz_external/test/test.pipe.php index 7d19c24..34ad748 100755 --- a/mod_authnz_external/test/test.pipe.php +++ b/mod_authnz_external/test/test.pipe.php @@ -20,6 +20,8 @@ $pass = trim(fgets(STDIN)); // Print them to the error_log file fwrite(STDERR, $prog . ": user='" . $user . "' pass='" . $pass . "'\n"); +// NOTE: $_ENV is only populated if the "variables_order" php.ini setting +// contains "E". Alternatively use getenv(). See GitHub issue #16. foreach ($_ENV as $k => $v) { fwrite(STDERR, $prog . ': ' . $k . '=' . $v . "\n"); -- 2.50.1